How to make a python script run in Anacron
Posted
by
Jeremy
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Jeremy
Published on 2011-02-18T18:19:39Z
Indexed on
2011/02/18
23:34 UTC
Read the original article
Hit count: 463
I have a python script that I would like to run daily using anacron, but I haven't been able to get it to work.
The script is in my home directory, and I have put a symlink to it in /etc/cron.daily/. I saw somewhere that things here can't have dots in the filename, so the symlink has the .py extension removed (the original file still has it).
The python file does have #!/usr/bin/python on the first line.
This is my first experience with cron / anacron, and so I'm sure I'm making a dumb mistake - I just don't know what it is. Is a symlink a problem? Do I need the actual file there? Is the python script the problem? Do I need to run a bash script that will open the python script? Is there something else I'm not thinking of?
© Ask Ubuntu or respective owner