Searched query: Run Python Script at Startup
NCLAB has a very good ebook "Introduction to Python Programming"frankenberry wrote: I now have a working script. Although, I do not understand why it works...
yes my mistake - or any number from 0-59Ferdinand wrote:It's 0 */4 * * * /path/to ...RaTTuS wrote: crontab -e
* */4 * * * /path/to/python /path/to/script arguments >/tmp/redirection.ouput.file
Otherwise 60 extra lines will be made in an outputfile.
I tested it.
It's 0 */4 * * * /path/to ...RaTTuS wrote: crontab -e
* */4 * * * /path/to/python /path/to/script arguments >/tmp/redirection.ouput.file
Please either add something constructive to this discussion or keep quiet.Martin Frezman wrote:More cruelty to newbies.
Thanks. I removed '&' and will keep the './' shorthand in mind for future script.rpdom wrote:cron does at least recognise the ~ shortcut for the home directory, so you can use(You don't need a & on the end of a crontab entry, it's pointless)Code: Select all
* * * * * /usr/bin/python ~/CronJobs/testPython.py
Code: Select all
* * * * * /usr/bin/python ~/CronJobs/testPython.py