manusatsangi
19th May 2002, 12:25
Hi,
How do I get all the list of bshell id's currently in the system.
We are on Win 2K server
Warm Regards
Manu
victor_cleto
19th May 2002, 14:13
The bshell's id's (=PID's) are obtained thru the Task Manager of Windows (on the server side).
For NT there was also some system (console) utilities that would give you a ps.exe program, similar to the UX one (I build my own ps and kill :) ), that probably can be also used on w2k, to give you the PID's.
manusatsangi
20th May 2002, 07:41
Hi Victor,
I am looking for an executable (equivalent to 'ps' of unix) which can be used in shell scripts. Hence, task manager is ruled out.
Any help.
Regards
Manu
victor_cleto
20th May 2002, 09:33
You should be able to find utilities like ps.exe in the web.
I just found a ps.exe + kill.exe in http://datax.zp.ua/projects
[ mine are smaller and even include /? for usage but this should do the trick ]
You should also look for a egrep.exe or similar to be able to extract information from the ps.exe, I know that several UX commands have been ported to NT/2000.
manusatsangi
20th May 2002, 16:06
Hi,
Thanks for the reply. This was exactly what I wanted.
Warm Regards
Manu Satsangi
NPRao
20th May 2002, 21:03
I dont remember exactly which one command... but it must be
licmon6.2 or licd6.2 [your baan version]
which shows all the current users connected to the bshell
if you go through that list the login code is appended by the bshell id like - user.2100
I cannot check up now, as we are on the BaaN-5.2 and Bclm is the new licence manager.
victor_cleto
21st May 2002, 18:02
It's the licmon6.x (the licd6.x is the daemon)
You can use licmon6.x -w to list the users. Under the USER field it shows the login.pid, you need to extract this one but diregard information where TYPE is not ba or bx/bw