bferro
12th July 2004, 22:33
I am using a Unix script to limit the number of times a Baan user can log in. The default is one for normal users. Everything works fine but I have one question. Before I used the Unix script and I changed the ipc_info from

bshell s 0 0 p ${BSE}/bin/bshell6.1 to
bshell s 0 0 p ${BSE}/bin/script6.1

I was able to do a "ps -ef | grep bferro" and it would give me the hostname (PC name) of the user. Now that I use the Unix script, I can't see it. How can I use find out the PC name of the computer that has logged in from? Why does it work for bshell6.1 command? See attached file for output of "ps -ef | grep bferro" command.

Markus Schmitz
13th July 2004, 08:45
According to my experience, taht's the way it is. As soon as you use a bshell wrapper, this nice feature of seeing the PC's name is gone.

But you can use tools like lsof (with option i) to find out with which IP Adresses a bshell is comunicating. This will give you the same result.

Enjoy

Markus

bferro
13th July 2004, 14:53
Thanks Markus,

But isn't lsof for Solrais? I am using HPUX 11i.

Bob

Markus Schmitz
13th July 2004, 15:23
Maybe lsof was first developed for Solaris, I do not know. I actually got to know it from HP support, who use it a lot for trouble shooting NFS issues!


You will find it for HP servers precompiled somewhere on the internet. But be carefull the 32 bit version will not run on 64 bit and the HP-Ux10.20 will not run on HP-Ux11i and so on. The version must fit excactly.

patvdv
13th July 2004, 17:23
You can download 'lsof' for HP-UX from the HP-UX Software and Porting Archive at http://hpux.connect.org.uk/

bferro
13th July 2004, 21:06
Thanks guys