Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Run python script from cron |
|
Author |
|
matrixebiz
Joined: 27 Sep 2017 Posts: 26
|
Posted: Wed 06 Dec '17 4:09 Post subject: Run python script from cron |
|
|
Hello, how do I properly run a python script every minute from crontab and send and email? Thanks |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 06 Dec '17 19:25 Post subject: |
|
|
You can use https://crontab-generator.org/ to get a propper line for your crontab file
For sending an email you can use your python script itself or use the pipe sign | to get output to a mail client. |
|
Back to top |
|
matrixebiz
Joined: 27 Sep 2017 Posts: 26
|
Posted: Wed 06 Dec '17 22:34 Post subject: |
|
|
Thanks, I'll check it out |
|
Back to top |
|
|
|
|
|
|