The modifier command is nohup, which stands for "no hang up". This is how it is used:
$ nohup your_long_process_command &
where your_long_process_command is obviously your long process command name.
Any processing messages printed out by your process would be rerouted to the text file nohup.out.
You can now logged out from the remote computer.
The next time you dial in to check on the status of your process, you can either review the nohup.out file with a text editor or you can run the following command to see whether it is still running in the process list.
$ ps -ef | grep your_long_process_command
If it returns a process list number, then it is still running.
No comments:
Post a Comment