Script Not waiting....plz help


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Script Not waiting....plz help
# 8  
Old 06-17-2008
joey...

no matter what command i use between <<EOF and EOF, all the commands are terminated after a while with the same exception that is coming from java class which util.sh is using.

The thing is that when i run the same commands (that are in <<EOF and EOF) seperately...the commands are not terminated until they are finished. Further the console waits for "exit" command to exit the console.

If you still asking questions...then we are wasting time to understand the behaviour of util.sh.

It is the shell which is disconnecting after supplying the commands to util.sh (that are in between <<EOF and EOF).

What I am looking for is a way to run the commands inside <<EOF and EOF while waiting till the commands are finished. I wonder whether it is possible if we use <<EOF...EOF ?????
# 9  
Old 06-17-2008
first off - the problem is probably in util.sh.

Since we are "black-boxing" util.sh it makes it really hard. I think you are getting a SIGHUP sent to a child process in util.sh, so let's try a nohup...
This script assumes util.sh uses read to get commands
Code:
# script1
echo "
connect
dump 
" | util.sh

Code:
nohup script1 &
wait

It would be far easier to nohup whatever is going on inside util.sh.... this is just a (probably) bad guess.
# 10  
Old 06-18-2008
jim thanks for the suggestion.

I tried it and still no luck.

Probably I need to follow up with the vendor.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to break out of hung or waiting telnet session in shell script?

I have to put together telnet instructions for 100s of hosts for verifying basic connectivity and get output in a neat format. Problem- If a telnet is hung with message "Trying .... <hostname" due to firewall or routing issue the commands waits for a very long time before it times out and my... (2 Replies)
Discussion started by: desiphantom
2 Replies

2. Shell Programming and Scripting

Waiting for a process to complete in shell script

Hi, I need to initiate a process script which will start and do some processing and then shuts down. Then i need to other verifications. But the the process takes around 25 to 3o minutes. One thing i can monitor the nohup.out file for this process where i can wait for shutting down statement to... (3 Replies)
Discussion started by: Prashanth19
3 Replies

3. Windows & DOS: Issues & Discussions

AutoSys Job not waiting for script to complete

I'm not sure if this is the right place to post this issue...but here goes... I am converting a set of windows jobs from Control-M to AutoSys r11.3. The same command line is being executed in both systems. The Control-M job runs to compltion in about 1.5 hours, waiting for the entire batch... (3 Replies)
Discussion started by: ajomarquez
3 Replies

4. Shell Programming and Scripting

How to do this Script PLZ?

HI all , i want to make an automatic script using if / while to search for files in folder and get the least by date and gzip them ( last 70 file ) /file/home/logs 30 files in 11/2012 45 files in 10/2012 30 files in 9/2012 10 files in 8/2012 so it get 10 + 30 + 30 ( from 10 )... (5 Replies)
Discussion started by: teefa
5 Replies

5. Shell Programming and Scripting

Need Script plz help

hi please help i need script to merger columns input file a,bb,1234345234 a,bb,sdfsdfsdf a,bb,xxxxxxxx b,cc,12335353 b,cc,fdgfdghht b,cc,yyyyyyy c,22,sdfgsdfg . . . . output file a,bb,1234345234a,bb,sdfsdfsdfa,bb,xxxxxxxx (10 Replies)
Discussion started by: ragu.selvaraj
10 Replies

6. Shell Programming and Scripting

SQL PLUS Command 'ACCEPT' is not waiting for user input with sh shell script

Dear All, The sqlplus 'Accept' command is not waiting for user input when I include the command within a shell script. Note: The 'Accept' command is working fine if I execute it in a SQLPLUS Prompt. Please fins the below sample script which i tried. SCRIPT: -------- #!... (4 Replies)
Discussion started by: little_wonder
4 Replies

7. Shell Programming and Scripting

expect script hangs while waiting for the flag...

I am writing a script to check whether the root password is set to a special string on some solaris servers. Normally, the manually ssh login session is as below: $ ssh root@host1 Password: Last login: Wed Sep 16 13:53:28 2009 from 10.1.102.13 Sun Microsystems Inc. SunOS 5.10 ... (4 Replies)
Discussion started by: sleepy_11
4 Replies

8. Shell Programming and Scripting

script help plz

Hi, im trying to make a script which will look up every .c file in the current directory for the strings printf or fprintf. if found, the script adds the statement #include <stdio.h> at the beginning of the file but only if it doesnt alrdy have it included. How do i do that ?i know firstly, i need... (6 Replies)
Discussion started by: lohan
6 Replies

9. Shell Programming and Scripting

Script not waiting for user responce

hi all, Im fairly new to scripting and am having a noobish issue. Ive got a script that checks for certain directories and if they dont exist, prompts the user to do a mkdir. heres trouble spot in the script: cat dirlsttemp.dat | while read dir; do echo "$dir does not exist, would you... (3 Replies)
Discussion started by: rdudejr
3 Replies

10. UNIX for Dummies Questions & Answers

plz Help How should I configure cc compiler output file plz help???

i.e configuration of C compiler :confused: (4 Replies)
Discussion started by: atiato
4 Replies
Login or Register to Ask a Question