Forum Moderators: coopster
define a file run_at.sh
#!/bin/bash
# change this url to automatization (need atd running)
wget [url_to_script_php_with_next_function...] > /dev/null &
and a script run_at.php with a function like:
function runNextPlease()
{
$min = 1;
exec ("at now + $min minutes -f " . PATH_TO_BASH_SCRIPT . "run_at.sh");
}
You must investigate "at" command. I don't know if accept seconds. I don't beliebe it, but one minute is close.
[edited by: NomikOS at 2:22 am (utc) on June 30, 2009]
Perhaps you can do something by remote request where you can run a cron? Using the previous example, if your PHP script is public (accessible by the web) you can use wget or curl set in a cron to request the script remotely. The timing will be off as you'll lose seconds in making the request, but . . .