Joe
shell_exec and cron!
Moderator: General Moderators
shell_exec and cron!
If I had a file named cron.php which executed a command would it be possible to set this as a cronjob using a PHP command such as shell_exec()?
Joe
Joe
Because you are probably trying to do something similar to me, I'll ask my question here.
I want a script to run daily that sends out an email to delinquent accounts. I was wondering if there is a way to do with even if the server is not accessed that day. I think cron jobs are out of the question because it's not a dedicated server.
I guess I could tell the guy he has to at least visit the site everyday, but thats such an inelegant solution.
I want a script to run daily that sends out an email to delinquent accounts. I was wondering if there is a way to do with even if the server is not accessed that day. I think cron jobs are out of the question because it's not a dedicated server.
I guess I could tell the guy he has to at least visit the site everyday, but thats such an inelegant solution.
There is directories within home/etc such as cron.daily, cron.weekly etc. You can create files within these directories and they will run at the specified time. The only problem is permission errors. Trying something like:
via ssh fails to work. 
Code: Select all
chmod -R 0777 /home/etc/cron.daily