php run script without waiting code example Example: php exec without waiting "> /dev/null 2>/dev/null &" shell_exec('your_command > /dev/null 2>/dev/null &');