nohup : commands keep executing even you exit from a shell prompt
nohup command if added in front of any command will continue running the command or process even if you shut down your terminal or close your session to machine
nohup command-name &
Where,
* command-name : is name of shell script or command name. You can pass argument to command or a shell script.
* & : nohup does not automatically put the command it runs in the background; you must do that explicitly, by ending the command line with an & symbol.
examples:
# nohup mysql -q -uUSER1 -pPASS1 < dump.sql > dump.log 2> error.log &
source:
http://www.idevelopment.info/data/Unix/General_UNIX/GENERAL_RunningUNIXCommandsImmunetoHangups_nohup.shtml
http://www.cyberciti.biz/tips/nohup-execute-commands-after-you-exit-from-a-shell-prompt.html
nohup command-name &
Where,
* command-name : is name of shell script or command name. You can pass argument to command or a shell script.
* & : nohup does not automatically put the command it runs in the background; you must do that explicitly, by ending the command line with an & symbol.
examples:
# nohup mysql -q -uUSER1 -pPASS1 < dump.sql > dump.log 2> error.log &
source:
http://www.idevelopment.info/data/Unix/General_UNIX/GENERAL_RunningUNIXCommandsImmunetoHangups_nohup.shtml
http://www.cyberciti.biz/tips/nohup-execute-commands-after-you-exit-from-a-shell-prompt.html
Comments
Mark
http://www.decasasyautos.com
my os is debian.