Skip to content

Instantly share code, notes, and snippets.

@intarstudents
Created January 27, 2013 09:14
Show Gist options
  • Save intarstudents/4647516 to your computer and use it in GitHub Desktop.
Save intarstudents/4647516 to your computer and use it in GitHub Desktop.
PHP launch background process (linux)
<?php
$pid = shell_exec("nohup /command/running/in/background > /dev/null 2> /dev/null & echo $!");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment