Sponsored Content
Top Forums Shell Programming and Scripting wait for 5 seconds in shell script Post 302134259 by gopsman on Thursday 30th of August 2007 05:17:01 AM
Old 08-30-2007
wait for 5 seconds in shell script

hi

how can i wait for 5 seconds inside my shell script? 'wait 5' command doesnot seem to be working?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

wait in shell scripts

Hi I am creating 3 background processes in my shell script using &. I have obtained the 3 PIDs of the background processes using $!. I need to wait for these to complete and i need the exit status of each of these. If i use : wait $PID1 wait $PID2 wait $PID3 and get the exit status of... (1 Reply)
Discussion started by: Vinaya
1 Replies

2. Shell Programming and Scripting

wait command - cat it wait for not-chile process?

Did not use 'wait' yet. How I understand by now the wait works only for child processes, started background. Is there any other way to watch completion of any, not related process (at least, a process, owned by the same user?) I need to start a background process, witch will be waiting... (2 Replies)
Discussion started by: alex_5161
2 Replies

3. Shell Programming and Scripting

shell script that will automatically check if specifed user is log in or not, in 30 seconds

guys I need emergency help with below shell script assignment..am new to shell script Write a Shell script to automatically check that a specified user is logged in to the computer. The program should allow the person running the script to specify the name of the user to be checked, the... (2 Replies)
Discussion started by: gurmad
2 Replies

4. Shell Programming and Scripting

Shell script runs fine in Solaris, in Linux hangs at wait command

HI, I have a strange problem. A shell script that runs fine on solaris. when i ported to linux, it started hanging. here is the core of the script CFG_FILE=tab25.cfg sort -t "!" -k 2 ${CFG_FILE} | egrep -v "^#|^$" | while IFS="!" read a b c do #echo "jobs output" #jobs #echo "jobs... (13 Replies)
Discussion started by: aksaravanan
13 Replies

5. Shell Programming and Scripting

calling a shell script in background and wait using "wait" in while loop

Hi, I am facing a strange issue, when i call a script from my while loop in background it doesnt go in background, despite the wait i put below the whil loop it goes forward even before the process put in background is completed. cat abc.txt | while read -u4 line do #if line contains #... (2 Replies)
Discussion started by: mihirvora16
2 Replies

6. Shell Programming and Scripting

execute the shell script per ten seconds

hi, everyone. My want to execute the shell script below per 10 seconds PID=`pgrep java` if then /home/java/java fi crontab wouldn't help me. some one can give me suggestions?thanks ---------- Post updated at 07:29 AM ---------- Previous update was at 07:26 AM ---------- ... (6 Replies)
Discussion started by: AKB48
6 Replies

7. Shell Programming and Scripting

How to exit a shell script if a unix command does not return any value for 10 seconds?

Hi, Can anyone help me how to exit a shell script if a unix command inside does not return any value for 10 seconds? The scenarios is like this. I want to login to a application using shell script where the connection string is mentioned.but suppose this connection string is not... (10 Replies)
Discussion started by: arijitsaha
10 Replies

8. Shell Programming and Scripting

Wait for one processes to complete in a shell script

Let's say I start process A.sh, then start process B.sh. I call both of them in my C.sh How can I make sure that B starts its execution only after A.sh finishes. I have to do this in loop.Execution time of A.sh may vary everytime. It is a parameterized script. (17 Replies)
Discussion started by: rafa_fed2
17 Replies

9. Shell Programming and Scripting

In Shell Script Does Second Command Wait For First Command To Complete

Hi All, I have a question related to Shell scripting. In my shell script, I have following two commands in sequence: sed 's/^/grep "^120" /g' $ORIGCHARGEDAMTLIST|sed "s;$;| cut -f$FIELD_NO1 -d '|' | awk '{ sum+=\$1} END {printf (\"%0.2f\\\n\", sum/100)}' >$TEMPFILE mv $TEMPFILE $ORIGFILE... (3 Replies)
Discussion started by: angshuman
3 Replies

10. Shell Programming and Scripting

[Solved] Help with shell Script ,wait for some files for some time??

Hi All, I have the requirement that ,i have to write a shell script that job has to wait for a 7 touch files created by another application for 4 hours, if i get all 7 touch files ,i have to send a mail that i jobs are completed, if if it is waiting for more than 4 hours i have to send a mail... (2 Replies)
Discussion started by: Pradeep Shetty
2 Replies
VBOXPUTTY(8)						      System Manager's Manual						      VBOXPUTTY(8)

NAME
vboxputty - a self-dialing/-calling vboxgetty SYNOPSIS
vboxputty -d device [-f config-file] [-c phonenumber] [-s ring-timeout] [-w wait] [-t redial] [-r redial-pause] vboxputty [-hv] DESCRIPTION
vboxputty is a vboxgetty, not waiting for, but triggering a call. After connect, vboxputty is acting exactly like vboxgetty. vboxputty exits with 0 if a connection was established, 99 on BUSY. OPTIONS
-h display a short help -v display the version information -f config-file use config-file instead of the default vboxgetty.conf -d device use device (/dev/ttyI*) for dialout -c phonenumber the phonenumber to be called -s ring-timeout vboxputty will dial the phonenumber and wait ring-timeout seconds for the called party to accept the call, if ring-timeout seconds are ellapsed before connect, vboxputty will hangup. -w wait after the connection is established, vboxputty will wait wait seconds before starting the tcl-script -t redial if the called party is BUSY, vboxputty will try redial times to get a connect -r redial-pause vboxputty waits redial-pause seconds between BUSY-redials FILES
/usr/local/vbox/etc/vboxgetty.conf AUTHOR
Gerrit Pape <pape@innominate.de> SEE ALSO
the vbox-documentation 4th Berkeley Distribution 13. January 2000 VBOXPUTTY(8)
All times are GMT -4. The time now is 01:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy