Hey guys..
Maybe too much food over the weekend.. Maybe brain cells are fried!
Created a basic/simple 5 line php test, It runs so chown/chmod are ok.
However, when I then run it as a background process, and check the procTBL, the PID is there.. the process never leaves, unless I manually kill it.. so... what have I forgotten.. I know.. the homer simpson (doh!!) is going to be painful on this one..
my test php
------------------------------ #!/usr/bin/php <?php
sleep(5); print "running child_test \n";
exit(); ?>
-----------------------------
running from the cmd line..
/cloud_nfs/child_test.php << runs fine, and not in procTBL after running..
trying to background from the cmd line..
/cloud_nfs/child_test.php & << never goes from procTBL unless manually killed
/cloud_nfs/child_test.php 2>&1 & << never goes from procTBL unless manually killed
So.. what did I screw up to run in background, and be removed from procTBL..
Thanks...
(be nice!!)
ok...
nohup /cloud_nfs/child_test.php > /dev/null & nohup /cloud_nfs/child_test.php > /dev/null 2>&1 &
both appear to work... in this use case..
thanks!
On Mon, Nov 28, 2016 at 12:28 PM, bruce badouglas@gmail.com wrote:
Hey guys..
Maybe too much food over the weekend.. Maybe brain cells are fried!
Created a basic/simple 5 line php test, It runs so chown/chmod are ok.
However, when I then run it as a background process, and check the procTBL, the PID is there.. the process never leaves, unless I manually kill it.. so... what have I forgotten.. I know.. the homer simpson (doh!!) is going to be painful on this one..
my test php
#!/usr/bin/php
<?php sleep(5); print "running child_test \n"; exit(); ?>
running from the cmd line..
/cloud_nfs/child_test.php << runs fine, and not in procTBL after running..
trying to background from the cmd line..
/cloud_nfs/child_test.php & << never goes from procTBL unless manually killed
/cloud_nfs/child_test.php 2>&1 & << never goes from procTBL unless manually killed
So.. what did I screw up to run in background, and be removed from procTBL..
Thanks...
(be nice!!)
On 28Nov2016 12:28, bruce badouglas@gmail.com wrote:
Maybe too much food over the weekend.. Maybe brain cells are fried!
Created a basic/simple 5 line php test, It runs so chown/chmod are ok.
However, when I then run it as a background process, and check the procTBL, the PID is there.. the process never leaves, unless I manually kill it.. so... what have I forgotten.. I know.. the homer simpson (doh!!) is going to be painful on this one..
my test php
#!/usr/bin/php
<?php sleep(5); print "running child_test \n"; exit(); ?>
running from the cmd line..
/cloud_nfs/child_test.php << runs fine, and not in procTBL after running..
trying to background from the cmd line..
/cloud_nfs/child_test.php & << never goes from procTBL unless manually killed
/cloud_nfs/child_test.php 2>&1 & << never goes from procTBL unless manually killed
So.. what did I screw up to run in background, and be removed from procTBL..
Odd. What is the output from ps?
Since these are both local background processes of your shell, what does the "jobs" command say about them?
What does:
strace -p <pid-of-the-process>
say it is doing?
Cheers, Cameron Simpson cs@zip.com.au