Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: nohup jobs

RE: nohup jobs

From: Kevin Toepke <ktoepke_at_rlcarriers.com>
Date: Tue, 3 Feb 2004 08:04:03 -0500
Message-ID: <524A8924345BD411B65600508B9A8B6505F17A4D@wilmail.wilnet>


You started 2 sub-shells by backgrounding the nohup and rcp commands. As soon as the last command in the file1 script returns control to the file1 script the parent shell (nohup ...) reports Done. Even though the grand-child of the interactive shell is still running. All the interactive shell can see is its child -- which has finished!

To get the results it appears you are asking for, remove the "&" from the rcp line in file1.

Kevin

-----Original Message-----
From: Kommareddy, Srinivas (MED, Wissen Infotech) [mailto:Srinivas.Kommareddy_at_med.ge.com] Sent: Tuesday, February 03, 2004 7:56 AM To: oracle-l_at_freelists.org
Subject: RE: nohup jobs

Hi,

But still my rcp is running.

Please see this:
(checked after 1 hr, the rcp is running, file count and size is growing)

applmgr 23825 1632 0 11:40:50 ? 0:44 /usr/lib/sunw,rcp -r -d -t /u02/app/applmgr/common/inst2/.

This is from target server, I checked.

Thanks and Regards,

Srinivas

-----Original Message-----
From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Rachel Carmichael
Sent: Tuesday, February 03, 2004 6:14 PM To: oracle-l_at_freelists.org
Subject: Re: nohup jobs

The & on the rcp command says "run it in the background". the & at the end of the nohup command says run it in the background as well.

So the nohup submits the rcp to the background and finishes right away -- correctly for the way you have programmed it.

If you want the nohup to continue until the rcp finishes, remove the & from the rcp line


Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/

Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to:  oracle-l-request_at_freelists.org
put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to:  oracle-l-request_at_freelists.org
put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
Received on Tue Feb 03 2004 - 07:04:03 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US