Created
June 1, 2021 20:42
-
-
Save sblack4/2ec324debf64e368c3b2f335a549daaa to your computer and use it in GitHub Desktop.
nohup stdout and stder to logfile, send process to background
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
[ -f nohup.log ] && rm -f nohup.log | |
nohup \ | |
yes \ | |
> nohup.log 2>&1 & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment