Run php script on background in PHP with nohup CLI
问题 I,m trying to run one php script in background. But its no working... I can only run directly from the ssh terminal. Using the same cli script. On the terminal, first i access the path: cd labs.lung.com.br/ztbot/bin/v2/php After that, i run my script in background: nohup php get_tweets.php > /dev/null & And it works! But, when i try to do the same thing with my php script: exec("nohup php get_tweets.php > /dev/null &"); doesnt work. Both files are in the same directory. I list the files in