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.
LinuxUnix OS
Last Comment
woolmilkporc
8/22/2022 - Mon
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.
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.