Sponsored Content
Full Discussion: Waiting between commands
Top Forums UNIX for Dummies Questions & Answers Waiting between commands Post 302121540 by patwa on Saturday 16th of June 2007 12:50:43 AM
Old 06-16-2007
Waiting between commands

Hello,

Taking my scripting one step farther, I want to run a number of commands one after the other, but the system should wait between commands. How do I do this? Do I use the /wait command, or is it a function wait()?

Code:
rsync command
/wait
tar command
/wait
move to a new folder
/wait
tidy up and delete existing files
exit

And I would wrap that all up into a script (see my previous thread on running a command as a script.

So /wait or wait(); ?

And also, does it make a difference what system the script is run on? My webhost uses proper CentOS linux, but when I run the same on my desktop (or the tidy part of the script) it's a cygwin port on Windows XP.

Thanks.

H.
 

10 More Discussions You Might Find Interesting

1. Linux

waiting process

how to know the information of the waiting process how to calculate the time of the process that it has taken to execute i want to make a program that Should be able to keep a log of the processes expired(The log should contain the starting time, expiry time, time slices used, total execution... (2 Replies)
Discussion started by: shukla_chanchal
2 Replies

2. Shell Programming and Scripting

Waiting on a group

In the below artificially simplified script, I want to wait till after a, b, and c have been printed, before printing "finished." If you just want to wait on a single background process, you can use $! (pid of the last background process). But this doesn't work if there's more than one... (1 Reply)
Discussion started by: tphyahoo
1 Replies

3. Shell Programming and Scripting

Looping and waiting

Hi Is it possible to have a script run in a loop (waiting for a change of state in the network interface), and if the loop continues for five minutes, to have it email the admin, and carry on in the loop? Here is my loop: #!/bin/bash STATE=`echo "show... (3 Replies)
Discussion started by: mikie
3 Replies

4. UNIX for Advanced & Expert Users

browser waiting

hi all i am opning a browser like www.example.com i would like to open this browser slowly (wait mode) how can i do this. is there any option like wait for some time that to 5sec.,10 sec. like (1 Reply)
Discussion started by: munna_dude
1 Replies

5. UNIX for Advanced & Expert Users

Process(s) ID waiting on IO?

Hello Experts!! My CPU is waiting a lot (around 33%) on I/O. I would like to find out what process(s) are waiting on the i/o. Below is my real time output of vmstat and sar. Thanks for you help !!!! Regards Citrus OS: AIX - 5L : /u2/oracle >oslevel 5.3.0.0 : /u2/oracle... (9 Replies)
Discussion started by: Citrus143
9 Replies

6. Shell Programming and Scripting

waiting

I have a text file which contain all the parameters need for scheduled jobs, then this "control" script would be called everynight at certain time while read line do $myScript.sh $line & pid=$! i=`expr $i + 1` done < $list then I need to wait until all... (1 Reply)
Discussion started by: mpang_
1 Replies

7. Shell Programming and Scripting

not waiting

I have a script that runs Compressor and converts the file then I want it to inject the file with Flvtool2. My script works fine but the flvtool2 is starting too early. I have tried to put it in the background by putting a "&" sign at the end and then put a "wait" on a new line. Anyone have any... (2 Replies)
Discussion started by: mainegate
2 Replies

8. Shell Programming and Scripting

not waiting...why?

My shell script is not waiting. I right click on a file and say convert it to whatever and it runs this script. It converts it using Compressor but I want it to wait until it is 100% done before moving on and it is not waiting. I have tried to put it in the background and using "wait". I have tried... (10 Replies)
Discussion started by: mainegate
10 Replies

9. HP-UX

Some I/O requests to this LV are waiting

Hi All I have a blade BL860c running on a C7000 chassis, in which is connected to a NetApp, so lately I am having I/O issues, and dmesg as well as syslog.log is reporting the following: /dev/vg01/lvol2 file system file data error in dev/block 0/55892768 Page I/O error occurred while paging... (2 Replies)
Discussion started by: fretagi
2 Replies

10. Debian

Waiting for localhost.

I am getting the message - waiting for localhost. Here are some diagnostic steps I have tried .... root@meow:/home/ethan# cat /var/www/cgi-bin/httpd.conf ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/jkj ServerName 127.0.0.1:80 Listen xx.xx.xx.xx:80 Listen 127.0.0.1:80 ... (1 Reply)
Discussion started by: Meow613
1 Replies
XFLIP(6)							   Games Manual 							  XFLIP(6)

NAME
xflip, meltdown - astonish your friends with interesting X effects SYNOPSIS
xflip [-planes] [-vert] [-oblic] [-fast | -random] [-times number] [-display displayname] meltdown [-planes] [-display displayname] [-delay x] [-wait n | -wait 0] DESCRIPTION
This manual page documents briefly the xflip, and meltdown commands. This manual page was written for the Debian GNU/Linux distribution (but may be used by others), because the original program does not have a manual page. The programs play with the X display, producing some interesting effects. One traditional use of these commands is to have them run and affect someone else's X display, as a practical joke. OPTIONS
-display displayname The X display to operate on. -planes Operate on a singleplane at a time. -vert Flip the screen vertically. -oblic Flip the screen vertically and horizontally at the same time. -random Flip small random peices of the screen instead of the while display. -times number Specifies the number of peices of the screen to flip when -random is used. Default is 300. -delay x Meltdown may run too fast on fast computers to be fully appreciated; this can be used to slow it down. If specified, every x times the display is updated, a 1 microsecond delay will be inserted. The default is no delay at all. Reasonable values for x are in the 20 to 200 range. -wait n Makes meltdown wait for n seconds after the screen is totally black. If you pass 0 to -wait, it will wait until you press a key or mouse button. AUTHOR
This manual page was written by Joey Hess, for the Debian GNU/Linux system. XFLIP(6)
All times are GMT -4. The time now is 07:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy