Created
April 17, 2014 08:31
-
-
Save vladimirtsyupko/10964740 to your computer and use it in GitHub Desktop.
Scrapy + cron
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
touch script | |
chmod 777 script | |
nano script | |
Put this to script “ | |
#!/bin/bash | |
export PATH="/usr/local/bin:/usr/bin:/bin" | |
cd `dirname $0` | |
exec "$@" | |
“ | |
env EDITOR=nano crontab -e | |
Put this to cron file " | |
*/1 * * * * /absolute/path/to/script/ command arg1 arg2 > /absolute/path/to/log | |
" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment