-   Programming (
-   -   Shell script using nohup hangs (

lloracle_dba 05-03-2005 03:38 PM

Shell script using nohup hangs
I'm trying to write a script that calls another script using the nohup command. Here is the script:

nohup /u01/applmgr/product/11i/mwa/11.5.0/bin/ start 10200 &

When I run it, the script displays this:

$ nohup: appending output to `nohup.out'

It waits for you to hit the Enter key. I need a way to by pass this. I'm trying to call this script when my server boots, but it just hangs :-(

jlliagre 05-03-2005 03:52 PM


nohup yourscript </dev/null &

lloracle_dba 05-03-2005 04:01 PM

It still does the same thing when I do that.

nohup /u01/applmgr/product/11i/mwa/11.5.0/bin/ start 10200 </dev/null &

When the script runs it pauses and waits for you to hit the Enter key.

jlliagre 05-03-2005 05:56 PM

What about modifying the script for it not to wait for an input ?

lloracle_dba 05-04-2005 08:27 AM

I looked at the script and I don't know if that is possible. The script is out of the box Oracle stuff. It looks like it calls some java to generate a "startup script" for a process. I think that startup script is what is hanging.

I was hoping there was something I could do with nohup since it pauses on any scripts I call. Or maybe there is another way of running the script?

PTrenholme 05-04-2005 08:48 AM

Just a guess, but, if that's an Oracle start-up script, it may be waiting for a password, and looping a few times before failing. Look at the script you're trting to run and see where (or if) it's asking for input, and pipe it in (if that's the problem :) )

lloracle_dba 05-04-2005 08:55 AM

It doesn't require a pwd to start the process. The process starts as expected. So the script is completing normally.

LogicG8 05-04-2005 10:52 AM

man expect

All times are GMT -5. The time now is 11:53 PM.