yeoea1
16th January 2004, 10:19
Hi,

I am currently using a Unix script to prevent user from multiple login thru baan client (GUI). I use the shell() command in baan to execute this unix script.

However recently we make a change on the client where the login method is change from "Rexec" to "Baanlogin". Now I found that my script is running without those "if" statement being check.

Anyone encounter similar situation or can provide any suggestion to this problem I encounter?

Thank u very much.

Yeo Eng Ann

Francesco
29th January 2004, 19:32
If I read between the lines, you test for multiple bshells _after_ the user logs on to the Baan system ("I use the shell() command in baan to execute this unix script").

Instead, why don't you direct your ipc_info line to your unix script and then start a bshell only if the user meets your criteria?

yeoea1
30th January 2004, 01:31
yes, you are right. I test for multiple bshell session using "licmon6.1 -w |grep $LOGNAME" to check if more than 1 session and kill off the current session if more than 1. I have found out that the reason my script fail to work.

It seem that if we using rexec method, the $LOGNAME variable in Unix is the users login ID. However if we use the baanlogin method which require blogind6.1 to run in the server, the $LOGNAME of all users become "root". I suspect that the ID is related to the blogind6.1 running in the server. Currently I have change the $LOGNAME to $USER for it to work.

Regarding this ipc_info line, where can I find it and how do I do that? I am certainly interested to try it out.

Thank again.

Francesco
30th January 2004, 17:20
I actually been busy on the WIKI this week and you're in luck ;)

My take on Baan connectivity right here (http://www.baanboard.com/twiki/bin/view/Infouser/BaanConnectivity).