I'm trying to launch a PHP script in the background (Linux/Centos 6.8) by appending the & symbol to the command. However, 'jobs' lists the script with status [1]+ Stopped. Issuing a 'bg 1' to run the script in the background still results in a "[1]+ Stopped" output.
I can issue 'fg 1' and the script runs in the foreground with no problems.
What am I doing wrong?
I am piping both stdout and stderr to files using > output.txt 2> error.txt
The script issues some shell commands including wget.
Thanks for any info to clarify this.
0 Answers