nohup:ignoring input and appending output to 'nohup.out'

PhpLinuxCentosCentos6Centos5

Php Problem Overview


I want to start my server through nohup.php but the command is not running and displays following error >nohup:ignoring input and appending output to 'nohup.out'

I am using ssh through putty, this is what i am doing

>nohup php server1.php

Php Solutions


Solution 1 - Php

That's not an error - it's normal behavior. It just informs you that once started the in/output is removed from your console.

To avoid the message you need to start it like

nohup php server1.php </dev/null &>/dev/null &

Solution 2 - Php

If you want to see the output of the executed command,You need to follow this step, execute the command $tailf nohup.out

Please note : Nohup command creates a file with name nohup.out in same location where you have executed the nohup command .

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionuser3809096View Question on Stackoverflow
Solution 1 - PhplpaseenView Answer on Stackoverflow
Solution 2 - PhpSudhir GauravView Answer on Stackoverflow