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()?
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.
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)
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)
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)
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)
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)
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)
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)
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)
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)
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
LEARN ABOUT OSF1
rc0
rc0(8) System Manager's Manual rc0(8)NAME
rc0 - Runs command script executed when stopping the system
SYNOPSIS
rc0
DESCRIPTION
The rc0 script contains run commands that enable a smooth shutdown and bring the system to a single-user state; run levels 0 and s. In
addition to commands listed in within the script itself, rc0 contains instructions to run commands found in the /sbin/rc0.d directory. The
script defines the conditions under which the commands execute; some commands run if the system is being shut down while others run if the
system is being shut down and rebooted to single user.
By convention, files in the /sbin/rc0.d directory begin with either the letter "K" or the letter "S" and are followed by a two-digit number
and a filename, for example: K00enlogin K05lpd K60cron K30nfs
In general, the system starts commands that begin with the letter "S" and stops commands that begin with the letter "K." The numbering of
commands in the /sbin/rc0.d directory is important since the numbers are sorted and the commands are run in ascending order. Files in the
/sbin/rc0.d directory are normally links to files in the /etc/init.d directory.
An entry in the inittab file causes the system to execute the rc0 script, for example: ss:Ss:wait:/sbin/rc0 shutdown < /dev/console >
/dev/console 2>&1 s0:0:wait:/sbin/rc0 off < /dev/console > /dev/console 2>&1
The following operations are typical of those that result from executing the rc0 script and the commands located in the /sbin/rc0.d direc-
tory: Notify users that the system is shutting down. Sync the disks Stop system services and daemons Stop processes Kill processes Unmount
file systems Invoke init if the system is being shut down to single user
The killall command sends a SIGTERM signal to stop running processes; SIGKILL follows to kill all processes except the process which initi-
ated the call. The umount -a command unmounts all file systems except the root file system.
FILES
Specifies the command path Specifies the directory of commands that corresponds to the run level
RELATED INFORMATION
Commands: init(8), killall(8), rc2(8), rc3(8), shutdown(8) delim off
rc0(8)