Francesco
15th October 2002, 00:23
bshcmd (or alg for previous Baan versions), is certainly the cleanest and easiest way to kill users.

There is however one condition in which your whole Baan toolset becomes worthless (I'm becoming quite an expert on this. lol), and that is when your shared memory is not functioning (properly).

It is therefore good to have a back-up in the form of a shell script.
I posted the script I use here (http://www.baanboard.com/baanboard/showthread.php?s=&postid=26260#post26260) for future reference.

It can even be used to kill _all_ baan sessions, by encapsuling it in a for loop like this:

for PID in $(ps -ef | grep bshell6\.2 | grep -v grep | nawk '{ print $2 }')
do
..../killbaansess.ksh $PID
done


Notice that the script will go through different attempts to kill the bshell gracefully, but if all else fails will sledgehammer it with a kill -9.