how to find whether a script run as a nohup finished or not?

Posted by learner135 on Stack Overflow See other posts from Stack Overflow or by learner135
Published on 2010-05-31T13:59:26Z Indexed on 2010/05/31 14:03 UTC
Read the original article Hit count: 236

I tried running a script using nohup like,

nohup script.sh &

When I tried

ps -ef | grep "script.sh"

I couldn't find it there except for the grep which is being run with that string as a parameter.

Am I doing it right?. Does this mean that the process has indeed finished execution? Thanks.

© Stack Overflow or respective owner

Related posts about unix

Related posts about shell-scripting