PHP Exec() Timing
Posted on 2006-11-24
I need to execute a C program in Linux through a PHP program. The trick is that it needs to execute after the browser has been closed and the session ended because it's an algorithmically intense program that will take a significant amount of time to run. If the C program is invoked while PHP is running, I believe the C program will be terminated when the PHP session times out and closes. This would be bad.
I've heard about something like an exec(at) type of command, where you can specify when the exec() gets invoked after a specific amount of time following the termination of the PHP session (5 seconds, 10 seconds, etc.), but I can't find anything on the subject anywhere. The output isn't an issue, as I'm creating output files and don't require any browser support. So, any ideas on how I can exec() this puppy correctly?