I need a function to be triggered by the user when simply clicking on a button. This will set a job to be executed at a specified time (let's say 9am) and will eventually be repeated periodically. That would be handled by PHP
So i've though about using CronJobs alongside PHP. I've followed this pretty good tutorial but I don't really know how to create the triggerred file (home/path/to/command/the_command.sh).
Could anyone advise me please ?
EDIT: In fact What I am looking to do is to call a url, let's say www.google.com at 9am if the user pushed the button on some admin website. The admin part of the job would be handled by the system set up on the tut page I've linked. And I am wondering how should be the file that is called by this php script when the author says :
$crontab->append_cronjob('30 8 * * 6 home/path/to/command/the_command.sh >/dev/null 2>&1');
what should I put into the_command.sh to call a url ?
I don't want this url to be open in any kind of browser. This url will basically trigger a function on the server side.