Skip to content

Instantly share code, notes, and snippets.

@osde8info
Last active November 26, 2015 16:28
Show Gist options
  • Save osde8info/086e6acc4fa3286e4603 to your computer and use it in GitHub Desktop.
Save osde8info/086e6acc4fa3286e4603 to your computer and use it in GitHub Desktop.
use cron to run 2 python scripts and redirect output and errors to 2 logfiles
# crontab
* * * * * python y.py > $(date +\%F-\%H-\%M-\%S).txt 2>&1 ; python z.py > $(date +\%F-\%H-\%M-\%S).txt 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment