Skip to content

Instantly share code, notes, and snippets.

@hrzp
Created September 16, 2019 09:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hrzp/a5dfa6e8042f9a4e2bf15f50cb5a22fd to your computer and use it in GitHub Desktop.
Save hrzp/a5dfa6e8042f9a4e2bf15f50cb5a22fd to your computer and use it in GitHub Desktop.
# Run a script
nohup python -u app/cronjobs/evacuate-accounts.py > evacuate-accounts.log 2>&1 &
# Save pid into a file
echo $! > pid_evacuate-accounts.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment