From: Terry <ma...@ao...> - 2006-11-14 00:16:00
|
How can I run a script 5 min after a user does something? I want to give a user 5 minutes to cancel an action, and if they don't then it actually happens. So, I'd like to run a script 5 minutes later, and have it perform any actions in the queue that are 5+ minutes old. 5 min is not critical, but I don't think I should wait longer than 10 min. What if it's only needed very infrequently? I'm thinking the options are to use a cron job that runs every few minutes, or, call the script with curl and have it sleep for 5 minutes first. Terry |