Run PHP script from Command-Line in Background (Linux)

Posted on December 2, 2017 at 10:11 pm

Use nohup to run a command even if the session is disconnected:

nohup php -f filename.php >/dev/null 2>&1 &

With the above command nohup doesn’t create nohup.out file.

Other Posts

Updated Posts