The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
nohup.out ramky79 AIX 5 10-23-2007 06:28 AM
nohup - help! bluemoon1 UNIX for Dummies Questions & Answers 9 10-11-2007 11:49 PM
Help on nohup bobbyjohnz UNIX for Advanced & Expert Users 3 10-18-2006 11:56 AM
Nohup miwinter UNIX for Dummies Questions & Answers 3 07-21-2006 05:20 AM
Monitor CPU usage and Memory Usage Gajanad Bihani High Level Programming 2 03-09-2005 07:35 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-20-2006
charan81 charan81 is offline
Registered User
  
 

Join Date: Jan 2006
Posts: 19
nohup usage..

Hi,

I want to run the below 3 sql files parallely..I know adding a "&" at the end

of the command will make it run in background.But each sql file will take

a considerable time to execute so i want to apply "nohup" to this execution.

Help me how to use " nohup " to these...

echo $PASSWD | $ORACLE_HOME/bin/sqlplus -s dls_rep@$2 @$DM_DIR/$2/$1/JOB/dimA.sql &

echo $PASSWD | $ORACLE_HOME/bin/sqlplus -s dls_rep@$2 @$DM_DIR/$2/$1/JOB/dimB.sql &

echo $PASSWD | $ORACLE_HOME/bin/sqlplus -s dls_rep@$2 @$DM_DIR/$2/$1/JOB/dimC.sql &

Thanks.

Last edited by charan81; 05-20-2006 at 02:46 PM.. Reason: To correct sql's
  #2 (permalink)  
Old 05-20-2006
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,753
Try something like this
Code:
nohup echo $PASSWD | $ORACLE_HOME/bin/sqlplus -s dls_rep@$2 @$DM_DIR/$2/$1/JOB/dimA.sql > log1 &
...
wait   # now you don't have to worry about disconnecting
Othwerwise all of the output from those three will be sprinkled into ./nohup.out
  #3 (permalink)  
Old 05-21-2006
charan81 charan81 is offline
Registered User
  
 

Join Date: Jan 2006
Posts: 19
Thanks!!

I have already directed the output to Logs folder like

LOGS=/ora05/fnfis/LOAD_logs; export LOGS

then i execute the 3 sql's and direct to > LOGS

You mean now if i dont redirect to log1 as you specified then

will it be redirected to nohup.out ??
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:32 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0