-
-
Save piemme/8d276ea763d6a3cec08f0a0db38dd565 to your computer and use it in GitHub Desktop.
Redirect nohup output to a file
This file contains hidden or 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
# redirect output and errors into file output.log: | |
nohup some_command > output.log 2>&1& | |
# abbreviated syntax for bash version >= ver.4: | |
nohup some_command &> output.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment