2014-08-08 Baoxinjian
I. Summary
The nohup command runs commands specified by the command parameter and any related arg parameters, ignoring all hang-up (SIGHUP) signals.
Use the Nohup command to run a program in the background after logging off.
To run the Nohup command in the background, add & (the symbol representing "and") to the end of the command.
1. REDIRECT Log files
If the output of the Nohup command is not redirected, the output is appended to the Nohup.out file in the current directory. If the nohup.out file for the current directory is not writable, the output is redirected to the $HOME/nohup.out file. If no file can be created or opened for appending, then the command specified by the commands parameter is not callable. If the standard error is a terminal, then all output of the specified command to the standard error is redirected to the same file descriptor as the standard output.
2. Key Concepts
(1). Function: Causes the process to continue execution after exiting the login.
(2). Format: $ nohup < program name > &
(3) Results: If the program has the result output, the output will be saved to a file named Nohup.out in the current directory, if the user does not have write permission in the current directory, the results will be saved to the user's home directory in the Nohup.out file.
(4). View: Jobs
Second, case-use Nohup startup script, background to view the situation
Abalone New ********************