Link to home
Create AccountLog in
Avatar of zonate_toaster
zonate_toasterFlag for United States of America

asked on

ps-aef | grep string gives [1]+ Done but when i check again it does not show any process running for it.

Server_Name:~/JPiLib> ps -aef | grep JPiTest
pi       15621 15461  0 08:36 pts/10   00:00:00 grep JPiTest
[1]+ Done /app/eat/java/jdk1.6.0_01/bin/java -jar JPiTest.jar >output.log 2>&1
but when i run the ps -aef | grep JPiTest again it gets killed automatically.
Please help me figure out whats the catch here.

Avatar of yuzh
yuzh

the ps command behave differently depends on your OS implemetation, but it should not kill any of the process, the process could complete when you type in the ps command.
If your system has the BSD style ps, you can use:
ps -uax | grep JPiTest
otherwise, you can use
ps -ef | grep JPiTest
man ps
in your box to find out the exact usage of the ps command for your version of OS.

ASKER CERTIFIED SOLUTION
Avatar of OriginalAuthority
OriginalAuthority

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account