I have created a Python 2.7.3 program on my Raspberry Pi that writes an XML file. When I run this program using IDLE's F5 key, it runs and outputs the XML file. When I run the same program using an LXDE terminal at the pi@raspberry-pi ~ $ prompt by typing python program_name.py, it also works as intended and outputs the XML file.
Now I want to refresh the XML file every 15 minutes, and it sounds like I should be able to do this using crontab.
So I started with the command crontab -e which opens up the editor (nano, in my case). I entered as the last line the following:
*/15**** python /home/pi/program_name.py
I also tried various variants as follows:
*/15**** sudo python /home/pi/program_name.py
and:
*/15**** python program_name.py
When I exit the program I get the error message:
"/tmp/crontab.nyQZsu/crontab":23: bad command
errors in crontab file, can't install.
Any ideas on what I am doing wrong?