nohup usage..


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers nohup usage..
# 1  
Old 05-20-2006
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 03:46 PM.. Reason: To correct sql's
# 2  
Old 05-20-2006
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  
Old 05-21-2006
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 ??
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Nohup and wait command usage

while read list do nohup ./process.sh $list & process_id=$! wait $process_id done < sample.lst command1.. command2.. //Am calling a shell script within and firing the multiple processes concurrently. (8 Replies)
Discussion started by: manid
8 Replies

2. UNIX for Dummies Questions & Answers

Memory usage per user,percent usage,sytem time in ksh

Let's say i have 20 users logged on Server. How can I know how much memory percent used each of them is using with system time in each user? (2 Replies)
Discussion started by: roy1912
2 Replies

3. Shell Programming and Scripting

Saving nohup output to a file other than nohup.out

Shell : bash OS : Oracle Linux 6.4 I want to save the ouput of a nohup command to file other than nohup.out . Below are my 3 attempts. For both Attempt1 and Attempt2 , the redirection logs the output correctly to the output file. But I get the error "ignoring input and redirecting stderr to... (7 Replies)
Discussion started by: kraljic
7 Replies

4. UNIX for Dummies Questions & Answers

Command to display the space usage (memory usage) of a specific directory.

Hi all, Can you please tell me the command, with which one can know the amount of space a specific directory has used. df -k . ---> Displays, the amount of space allocated, and used for a directory. du -k <dir name> - gives me the memory used of all the files inside <dir> But i... (2 Replies)
Discussion started by: abhisheksunkari
2 Replies

5. Shell Programming and Scripting

Confused with the usage of one variable usage

Hi All I am not able to understand the usage of d# in the below variable declaration. FILE_LOC contains the directory path And also help me to know about what will be saved in the variable j. Thanks!!! j=${d#${FILE_LOC}/} (2 Replies)
Discussion started by: mohanm
2 Replies

6. Shell Programming and Scripting

Usage of NOHUP - How to keep the child process running even if I close the Server connection

Hi. ! When I use the 'NOHUP' along with the '&', the process will be running in the background. Even when I attempt to close (Meaning 'EXIT') the session (say PUTTY in this case), it wont exit unless the process is completed. But, say when I forcefully terminate the session (SHUT DOWN the... (2 Replies)
Discussion started by: WinBarani
2 Replies

7. AIX

How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..?

How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies

8. Solaris

current CPU usage, memory usage, disk I/O oid(snmp)

Hi, I want to monitor the current cpu usage, monitor usage , disk I/o and network utlization for solaris using SNMP. I want the oids for above tasks. can you please tell me that Thank you (2 Replies)
Discussion started by: S_venkatesh
2 Replies

9. HP-UX

how can I find cpu usage memory usage swap usage and logical volume usage

how can I find cpu usage memory usage swap usage and I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times my final destination is monitor process logical volume usage above X % and number of Logical voluage above can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies

10. Programming

Monitor CPU usage and Memory Usage

how can i monitor usages of CPU, Memory, Hard disk etc. under SUN Solaries through a c program or java program i want to store that data into database so i can show it graphically thanks in advance (2 Replies)
Discussion started by: Gajanad Bihani
2 Replies
Login or Register to Ask a Question