0

I'm just getting to grips with Python and Cron (and Raspberry Pi).

I've written a script that sends me an email that I plan to have send me stats about my website on a daily basis. The script works fine, if I load it up in Idle and hit F5, I get an email.

I've tried to get this to work in Cron, I've tried using command line and with the Gnome program but it doesn't do anything - I think I might have something wrong with the Cron command...

30 12 * * * /home/pi/Python/Email.py

should this work or have I missed something?

1 Answer 1

2

You could try

30 12 * * * python /home/pi/Python/Email.py

or change permission of your file:

chmod +x /home/pi/Python/Email.py
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.