Skip to content

Instantly share code, notes, and snippets.

@sven-bock
Created January 26, 2018 16:11
Show Gist options
  • Save sven-bock/2860bdc7f45b8d7195a9d0b88a87bce5 to your computer and use it in GitHub Desktop.
Save sven-bock/2860bdc7f45b8d7195a9d0b88a87bce5 to your computer and use it in GitHub Desktop.
Run some executable as a background process
# This can be quite useful to run some process on the server,
# as it will not listen to the hangup signal of the terminal
# and will not terminate the process, if you close the terminal.
# In addition all output is appended in the log file
nohup /usr/bin/python3.4 /abspath/someFile.py 2>&1 | /usr/bin/tee -a /abspath/log.txt &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment