wvwisokee wrote:THX, this helps me a lot, but is there a way to input these commands via php?
I want to make a page, where the user inputs something, then it is executed 5 minutes later. (even when the browser is shut.)
You would need to store the values the user input either in a file or in a database as well as the time that the user executed the page. Then write a php script that when ran will pull your parameters from your data source...either the database or your file that you saved the parameters to. After retrieving your parameters you can use them in your script to do whatever needs to be done. You will need to use the time parameter within an if statement to see if it has been 5 minutes since the user input the params. If it has been 5 minutes then you can do whatever needs to be done, if not 5 minutes do nothing.
After writing your script you can setup your cronjob to run as often as you want. The cron job would execute the script that you ran as often you like, even every second if you need it to.
If you have never messed with cron before my advice would be to create your php script in a folder accessible to the web that way you don't have to worry about defining paths and such. THen you can use GET as your command for cron to execute:
GET http://yourdomain.com/path_to_file/script_to_run.php > /dev/null