LittleJohn
10th August 2004, 06:59
Hi,

I'm trying to create a session/process that can start a bshell for me.

I have the below scenario....
I logon to Baan and start the tmboaserver or some session. This session must always be running... since other sessions depend on this tmboaserver or the FIRST session. Sometimes.. for whatever reason... the tmboaserver loses connection to bshell. Hence... the subsequent dependent sessions cannot run, coz they depend on the tmboaserver or parent session...
I have to start the tmboaserver again... manually.

The above bshell will always be started by the user "Baan".
I would like to create a process/session, which can run as a job... check if the bshell is activate. If the bshell is not active, then launch a new bshell.
(the bshell will launch the tmboaserver by itself.... this i got figured out).

How is it possible to know if a given bshell is active or not.
Is there any other way to know, unless we compare the ticks ?
Which commands would i use for the above purpose.

I'm on Baan Vc.

All help is appreciated. Thanks

Cheers
Little John

NPRao
13th August 2004, 02:36
Minhaaj,

I am not clear about all the requirements, here are some ideas.
I'm trying to create a session/process that can start a bshell for me.
If you are trying to start a new "bshell" then you have to use the multi-bshell functionality. If you are trying to start a bshell as a subprocess then you can use $BSE/bin/bshell6.2 -server option with a 3-GL program.
I logon to Baan and start the tmboaserver or some session.
You start the tmboaserver in BMS Mask options, so that whenever a user logs in then it is started automatically.
I have to start the tmboaserver again... manually.The above bshell will always be started by the user "Baan".
Do you mean there is only one tmboaserver running for your environment or more than one ?
I would like to create a process/session, which can run as a job... check if the bshell is activate. If the bshell is not active, then launch a new bshell.
There are 2 options if you do the BMS way, you have to create a monitoring program to check all the process of the current user using pstat() and then finding if tmboaserver is active or not.
Refer to the link - Continuous display of Baan information (http://www.baanboard.com/baanboard/showthread.php?p=18560#post18560)
And if one tmboaserver is running for your environment then you have to create a external monitor program to check and restart if its down.

Good Luck!