Python and Cron job

Posted: March 20, 2016 in Python
Tags:

Hi, here are the simple step to use run python scripts with cron job:

$ crontab -e

Then insert this line:

*/15 * * * * /usr/bin/python /home/myprojectfolder/testfile.py >> test.log 2>&1

You can download my python project at https://github.com/flakesns/python-example

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s