Python and cron jobs.
Lee Harr
missive at frontiernet.net
Mon Aug 4 18:53:42 EDT 2003
In article <7b454334.0308041023.6e688b4d at posting.google.com>, Fazer wrote:
> Hello,
>
> I am wondering that if it is possible to add cron jobs via a web or
> shell interface? I can make Python act as a shell script and be
> called by a PHP script. But my main goal here is to be able to manage
> cronjobs. Add or remove certain crjob jobs etc...
>
> Can any kind soul shed some light on how I would accomplish this?
>
I think adding them from the shell is probably the "normal" way.
For adding cron jobs from the web, you might look at webmin.
Basically, the crontab is just a file, so if you can edit the file
from your program and then force cron to reload the crontab you
are all set.
More information about the Python-list
mailing list