Avatar of zonate_toaster
zonate_toaster
Flag 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.

LinuxUnix OS

Avatar of undefined
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.

ASKER CERTIFIED SOLUTION
OriginalAuthority

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
woolmilkporc

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck