Skip to content

Instantly share code, notes, and snippets.

@candlewill
Forked from umidjons/nohup-output-to-file.sh
Created August 29, 2017 13:48
Show Gist options
  • Save candlewill/319d83c4ca14fcbfe4c9065d74237e66 to your computer and use it in GitHub Desktop.
Save candlewill/319d83c4ca14fcbfe4c9065d74237e66 to your computer and use it in GitHub Desktop.
Redirect nohup output to a file
# 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