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: KSH Scripting Questions

RE: KSH Scripting Questions

From: Mohan, Ross <MohanR_at_STARS-SMI.com>
Date: Mon, 10 Dec 2001 10:50:58 -0800
Message-ID: <F001.003D90B9.20011210102023@fatcity.com>

put "wait" in main.

then cleanup.

sorry for the wordy reply.

;-)

-----Original Message-----
Sent: Monday, December 10, 2001 12:35 PM To: Multiple recipients of list ORACLE-L

Kevin --

Is your program supposed to find all the monitors it starts and kill them cleanly, or are the monitors supposed to run independently once kicked off?

IF YOU WANT TO KILL THE PROCESSES CLEANLY, your process when you are running the job is $$. You can grep the processes for any subprocesses you've kicked off and then kill them as you please.

IF THE MONITOR SHOULD RUN AFTER THE DRIVER ENDS, the command you want to use is nohup. And you probably want it to run in the background so that your processing can continue. Your command is "nohup <monitor -flags> &"

HTH,
Bambi.
-----Original Message-----
Sent: Monday, December 10, 2001 10:55 AM To: Multiple recipients of list ORACLE-L

I have a kshell script that I am trying to perform an oracle operation.

Everything works fine in the script excpet cleanup.

One section of the script spools off a monitor job that watches the script for any failures by use of flag files and file checking. This all works well UNTIL the main program ends before the monitor programs.

What happens is , that when the main program ends, the monitor closes down because it was spawned by the main program. Because of this, no all the flag files are getting deleted.

I need to know the proper trap to set and its syntax to catch an ending program so that I can get it to delete the flag files.

Anyone have any ideas ??

Thanks

Kevin

--

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

Author: Kevin Lange
  INET: kgel_at_ppoone.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--

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

Author: Bellows, Bambi
  INET: BBellows_at_usg.com
Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--

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

Author: Mohan, Ross
  INET: MohanR_at_STARS-SMI.com
Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Mon Dec 10 2001 - 12:50:58 CST

Original text of this message

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