RE: RE: wait/notify syntax for unix help please

2003-10-28 Thread Dunscombe, Chris
There's no problem with waiting after the process has already finished,
you'll just get a non-zero return code the wait but evrything will still
work fine.

Chris

-Original Message-
Sent: 27 October 2003 18:54
To: Multiple recipients of list ORACLE-L


if you attemp to wait after the process is complete, will it cause a
problem? say the PID no longer exists when you issue wait? 
 
 From: Dunscombe, Chris [EMAIL PROTECTED]
 Date: 2003/10/27 Mon AM 11:39:34 EST
 To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
 Subject: RE: wait/notify syntax for unix help please
 
 I don't know about Solaris but on HP-UX and AIX you can do:
 
 run_sql_1 
 run_sql_2 
 wait
 
 This will wait until both have finished.
 
 Re a specific PID $! will return you PID of the last child process and
then
 you can wait on that PID. Looks something like:
 
 run_sql_1 
 run_sql_2 
 PID_WAIT=$!
 wait ${PID_WAIT}
 
 HTH
 
 Chris Dunscombe
 
 
 -Original Message-
 Sent: 27 October 2003 16:09
 To: Multiple recipients of list ORACLE-L
 
 
 I need to parallelize some sql operations and Im running them from unix
 scripts. 
 
 I want to spawn off a few in the background from a master script, then
have
 the master script 'wait' for them to finish. Ive done this in Java and
with
 dbms_alert, but I cant dig up the syntax to do this with korn shell on
 solaris. 
 
 Also, if I want to wait for a specific PID, how do I get the PID of the
 thread I want to wait for?
 
 so I have
 
 nohup run_sql 
 
 wait(on previous nohup)
 
 then to use notify, I just use 'notify()' inside the script right? 
 
 -- 
 Please see the official ORACLE-L FAQ: http://www.orafaq.net
 -- 
 Author: [EMAIL PROTECTED]
   INET: [EMAIL PROTECTED]
 
 Fat City Network Services-- 858-538-5051 http://www.fatcity.com
 San Diego, California-- Mailing list and web hosting services
 -
 To REMOVE yourself from this mailing list, send an E-Mail message
 to: [EMAIL PROTECTED] (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.net
 -- 
 Author: Dunscombe, Chris
   INET: [EMAIL PROTECTED]
 
 Fat City Network Services-- 858-538-5051 http://www.fatcity.com
 San Diego, California-- Mailing list and web hosting services
 -
 To REMOVE yourself from this mailing list, send an E-Mail message
 to: [EMAIL PROTECTED] (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.net
-- 
Author: [EMAIL PROTECTED]
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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.net
-- 
Author: Dunscombe, Chris
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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).


Re: RE: wait/notify syntax for unix help please

2003-10-27 Thread ryan_oracle
if you attemp to wait after the process is complete, will it cause a problem? say the 
PID no longer exists when you issue wait? 
 
 From: Dunscombe, Chris [EMAIL PROTECTED]
 Date: 2003/10/27 Mon AM 11:39:34 EST
 To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
 Subject: RE: wait/notify syntax for unix help please
 
 I don't know about Solaris but on HP-UX and AIX you can do:
 
 run_sql_1 
 run_sql_2 
 wait
 
 This will wait until both have finished.
 
 Re a specific PID $! will return you PID of the last child process and then
 you can wait on that PID. Looks something like:
 
 run_sql_1 
 run_sql_2 
 PID_WAIT=$!
 wait ${PID_WAIT}
 
 HTH
 
 Chris Dunscombe
 
 
 -Original Message-
 Sent: 27 October 2003 16:09
 To: Multiple recipients of list ORACLE-L
 
 
 I need to parallelize some sql operations and Im running them from unix
 scripts. 
 
 I want to spawn off a few in the background from a master script, then have
 the master script 'wait' for them to finish. Ive done this in Java and with
 dbms_alert, but I cant dig up the syntax to do this with korn shell on
 solaris. 
 
 Also, if I want to wait for a specific PID, how do I get the PID of the
 thread I want to wait for?
 
 so I have
 
 nohup run_sql 
 
 wait(on previous nohup)
 
 then to use notify, I just use 'notify()' inside the script right? 
 
 -- 
 Please see the official ORACLE-L FAQ: http://www.orafaq.net
 -- 
 Author: [EMAIL PROTECTED]
   INET: [EMAIL PROTECTED]
 
 Fat City Network Services-- 858-538-5051 http://www.fatcity.com
 San Diego, California-- Mailing list and web hosting services
 -
 To REMOVE yourself from this mailing list, send an E-Mail message
 to: [EMAIL PROTECTED] (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.net
 -- 
 Author: Dunscombe, Chris
   INET: [EMAIL PROTECTED]
 
 Fat City Network Services-- 858-538-5051 http://www.fatcity.com
 San Diego, California-- Mailing list and web hosting services
 -
 To REMOVE yourself from this mailing list, send an E-Mail message
 to: [EMAIL PROTECTED] (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.net
-- 
Author: [EMAIL PROTECTED]
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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).


Re: RE: wait/notify syntax for unix help please

2003-10-27 Thread Mladen Gogala
On 10/27/2003 01:54:25 PM, [EMAIL PROTECTED] wrote:
if you attemp to wait after the process is complete, will it cause a
problem? say the PID no longer exists when you issue wait?
Why don't you try it? There is this phenomenal Unix IDE called vi
which can help you to write a shell script and O'Reilly has a book
explaini9ng how to use it. There is also a heresy against The One True  
Editor called Emacs, but I'd advise against it.

Mladen Gogala
Oracle DBA


Note:
This message is for the named person's use only.  It may contain confidential, 
proprietary or legally privileged information.  No confidentiality or privilege is 
waived or lost by any mistransmission.  If you receive this message in error, please 
immediately delete it and all copies of it from your system, destroy any hard copies 
of it and notify the sender.  You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the intended 
recipient. Wang Trading LLC and any of its subsidiaries each reserve the right to 
monitor all e-mail communications through its networks.
Any views expressed in this message are those of the individual sender, except where 
the message states otherwise and the sender is authorized to state them to be the 
views of any such entity.
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Mladen Gogala
 INET: [EMAIL PROTECTED]
Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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).


RE: RE: wait/notify syntax for Unix help please

2003-10-27 Thread Thater, William
Mladen Gogala  scribbled on the wall in glitter crayon:

 On 10/27/2003 01:54:25 PM, [EMAIL PROTECTED] wrote:
 if you attemp to wait after the process is complete, will it cause a
 problem? say the PID no longer exists when you issue wait?
 
 Why don't you try it? There is this phenomenal Unix IDE called vi
 which can help you to write a shell script and O'Reilly has a book
 explaini9ng how to use it. There is also a heresy against The One True
 Editor called Emacs, but I'd advise against it.

Emacs is a nice operating system, but i prefer Unix.;-)

--
Bill Shrek Thater ORACLE DBA  
I'm going to work my ticket if I can... -- Gilwell song
[EMAIL PROTECTED]

I cannot imagine a God who rewards and punishes the objects of his creation,
whose purposes are modelled after our own  - a God, in short, who is but a
reflection of human frailty. Neither can I believe that the individual
survives the death of  his body, although feeble souls harbour such thoughts
through fear or ridiculous egotisms. - Albert Einstein
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Thater, William
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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).