We have a script (generator) that is creating a series of at jobs. The at jobs fire another PHP script. The generator script loops through and does something like this:
exec('/usr/bin/at 5:00 May 11, 2015 -f ' . $filename); $filename looks something like this:
php /some-location/some-script.php arg1 arg2 arg3 It's working awesome, we love it. What I'm trying to figure out is how to grab the job id and the file name in /var/spool/at/filename from the generator script as it runs so I can store it in case we need to alter/cancel after they been scheduled.
Does anyone have any idea how I can grab that info from the exec() that's creating the at Job?