$pid=fork(); if($pid) { run one process; } while(1) { run the process after 10 minutes sleep 600; }