jan1024188 — 2010-05-01T15:36:55-04:00 — #1
What I am trying to do is use PHP to create Cron Job on my linux server. I tried
exec("crontab -u jancom $pathtophpfile", $response), but it returns empty array.
I also want to set time to when should the crontab execute the task.
jan1024188 — 2010-05-01T15:44:06-04:00 — #2
also I want to run each task JUST ONCE
stickycarrots — 2010-05-01T17:33:41-04:00 — #3
I was trying to find something like this and was unable to. I would love it if someone could find it. Not sure if it's possible though.
jan1024188 — 2010-05-02T06:56:13-04:00 — #4
maybe if I could also setup time based on time() function...
Can anyone help?
jan1024188 — 2010-05-02T13:31:33-04:00 — #5
A friend told me its not possible to do it.
So.. need to find a way around.
Maybe if I make database, put in scheduled tasks, than create php file that is ran by crontab every minute checking which tasks in database have to run and run them?