cgi perl script to edit a Cronfile
Posted on 2003-03-27
I am designing a web interface to edit the cron file. The user will enter the date month day etc and also the command to be run. What I need to know is how to edit the cron file. because if i open it like a normal text file and append to it, that wont work. The new information is there in the file but the job is not executed by the cron.
If I do crontab -e and edit it in VI editor it does work.
But i cannot do that from a cgi perl script
Is there any way to do this? Or any way I can schedule a cron job from a web interface?
thanks a lot:)