Run a Bash Script in Background with No Output
Redirect the stdout
and stderr
to /dev/null to ignore the output and do not create the /root/nohup.out
log file:
nohup /path/to/script.sh > /dev/null 2>&1 & |
To save the stdout
and stderr
to the nohup.out
file:
nohup /path/to/script.sh & |
A similar article is:
Execute Commands After You Exit From a Shell Prompt
More Related Posts
- [2016/06/01] Extract and Count Unique IP Addresses ...
- [2016/06/21] Bash: lsb_release: command not found
- [2016/05/25] Debconf-get-selections: Command not fo...
- [2016/05/26] Cannot Access Attachments Upload Path ...
- [2016/05/24] Free Windows Templates For Kimsufi
- [2016/06/15] Bash: make: command not found
- [2016/07/02] Execute Commands After You Exit From a...
- [2016/06/15] Install ImageMagick from Source on Deb...