Python and cron jobs.
Fazer
faizan at jaredweb.com
Tue Aug 5 01:00:09 EDT 2003
Lee Harr <missive at frontiernet.net> wrote in message news:<slrnbitp3n.e5r.missive at localhost.my.domain>...
> 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.
Thanks for your reply.
I thought that crontab was directory? I don't require webmin, I need
a script that would add the cron job and possible force the cron to
reload as you said. Do you know how may I accomplish this?
More information about the Python-list
mailing list