Skip to content

Instantly share code, notes, and snippets.

@damour
Created June 17, 2013 15:03
Show Gist options
  • Select an option

  • Save damour/5797565 to your computer and use it in GitHub Desktop.

Select an option

Save damour/5797565 to your computer and use it in GitHub Desktop.
While you are logged into a server, you can run a script in detached mode by the following command:
nohup script >script.out 2>script.err &
Later when you log in again, you can check script.out for any output, and script.err for any error messages. If you want output and error messages in the same file, then do:
nohup script >script.out 2>&1 &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment