Results 1 to 3 of 3
I often run MATLAB on a CentOS server in the background using the nohup command, and the program will often take some hours to finish. Logging on to the server ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-08-2013 #1
- Join Date
- Apr 2013
How can I know a command in CentOS has finished remotely?
It may be better to make the server notify me when the command has finished, so I can just wait and do not need using top to see whether it is finished. I'm running Ubuntu on my PC. Can anyone help me doing this? Thanks a lot.
- 04-08-2013 #2
- Join Date
- Apr 2009
- I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
Try the pidof command. It returns the pids of the named program that are running. IE,
pidof matlabSometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 04-13-2013 #3
To expand on Rubberman's suggestion, if you're willing to take the time, you could set it up to send you an email. I do it all the time at work to send me an email when some job finishes, but we have it setup by default there, so it may take quite a bit more effort to get it working in a smaller environment.New to the internet, technical forums, or the hacker / open source community??
Read this to learn good posting habits http://www.catb.org/~esr/faqs/smart-questions.html
RHCE for RHEL version 5
RHCT for RHEL version 4