Hello, all:
I've got a
struts app that needs to schedule a task to run at a user specified time. I.e., the user can specify, via a struts
JSP page, that they want a given task run at a given time. Based on this input, I want the Action bean to write a line to the crontab file.
My question is, how can I write to the crontab file directly from
Java?
I usually edit crontab files from the commandline with crontab -e which then opens the crontab in vi. The crontab file isn't directly editable without using the crontab command, AFAIK. Are there any classes or techniques that can be recommended to do this?
Thanks so much!
Mark Kennedy