jaycee99
8th August 2006, 07:02
How to kill bshell process that hang in the system?
For example: bshcmd6.1 -k <pid> <bshell_pid>
But i don't know how to get the pid/bshell_pid.
Pls advice. Thanks. :)
bigjack
8th August 2006, 07:17
run ps -ef | grep bshell from your shell command prompt.
The second column is the process id for bshell. You can kill the required process.
You can also goto option dialog --> Start Shell --> run ps command.
This will display all running processes from your current bhell only unlike above method which will list all bshell processes'
Once again use kill "processid" to kill the process. For more options refer manual of ps & kill commands.
This topic has been discussed many times on this forum, so a quick search may yield you with better solution than mine.
Cya
norwim
8th August 2006, 08:53
And once again:
From the help you get when running bshcmd6.1 -U you have the information:
Kill a bshell process with pid <pid>:
bshcmd6.1 -k <pid> <bshell_pid>
This is how to kill the SUBPROCESS k within the bshell.
If you wish to terminate a complete bshell itself, then you need the process-ID the OS gave to the bshell.
The right format to kill a bshell is bshcmd6.1 -e -u1 -w1 PID
Since you don't have a real OS (sorry, couldn't resist that one), perhaps you might have to install something like the resource kit or similar to have a ps command that shows the process-ID. ( have a look at www.sysinternals.com pstools )
hth
Norbert
jaycee99
11th August 2006, 05:24
Hi bigjack,
I'm trying using ur mention method "run ps -ef | grep bshell" , i can't find the user processid that i want to kill which is already hanged but i can see all the other user processid which is ok. When i'm trying to view the currently baan license using "licmon6.1 -w" the hanged user is listed there. Any other solution for this?
Hi norwim,
Ur method of killed bshell process is "bshcmd6.1 -k <pid> <bshell_pid>". I'm not familiar with all this command thats y i could not know how to get the <pid> and <bshell_pid> . Can u show me the method of getting this info?
mark_h
11th August 2006, 15:40
Have you run clean in licmon6.1. It seems this cleans up some licenses - when we can not see them with the ps command. Not sure if it solves your problem. You may also want to do ps -ef | grep username - you might find other hung processes that need to be killed.
Kozure Ohashi
12th August 2006, 01:32
Dear jaycee99,
there are great tools published on baanboard. (Tools Administration & Installation)
Using Baan tools -> os independent.
Used it on windows 2003 server and Unix Tru64.
It helps you to find the right pid, having information about user AND session and time.
Because normaly the users logs in one more time after crashing with another bshell.
I combined 3 threads i found on baanboard to one single admin session:
(1) List PID of all or specific user (after pressing a form button)
(2) Kill process (marking the record and pressing button)
(3) Send message to a user or broadcast.
Regards,
Kozure
jimmari73
28th June 2007, 20:03
Es posible mediante programación, matar los procesos del usuario???
Is it possible kill user's process in programs ??
I try to do it with function kill (long procesid). But the process is not kill.
george7a
29th June 2007, 09:01
Hi,
Can you please translate that into English?
- George