LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   nohup command in script doesn't return to system console prompt (https://www.linuxquestions.org/questions/linux-software-2/nohup-command-in-script-doesnt-return-to-system-console-prompt-524093/)

beammeup 01-30-2007 11:12 AM

nohup command in script doesn't return to system console prompt
 
Hi,

I have a script that I am using to start a process with the nohup command and it does not return to the console prompt upon completion of the script.

Has anyone seen this and what might I be missing from the nohup line?

The line reads like this:

nohup ./start_iq8dfserver.sh </dev/null \ &

I've also tried it without the </dev/null \ and with out the \ at the end before the &.

Thanks

raskin 01-30-2007 03:21 PM

It's mystical.. It should return to console immediately after starting script - when you do not put '\' before '&'. Does
'while true; do echo >/dev/null; done &' go to background ? To stop it run 'fg' and press 'Ctrl-C'.

dhowe 02-05-2007 09:21 AM

We tried the 'while true; do echo >/dev/null; done &' and it does go to the background. But the script doesn't with us manually hittihg enter.

unSpawn 02-05-2007 09:42 AM

Any clues in "nohup.out"?

dhowe 02-05-2007 02:01 PM

I found a work around seems to be working for us. I changed the code to:

nohup ./start_iq8dfserver.sh >>nohup.out 2>&1 &


All times are GMT -5. The time now is 02:52 PM.