WAIT(1) General Commands Manual WAIT(1)NAME
wait - await completion of process
SYNOPSIS
wait
DESCRIPTION
Wait until all processes started with & have completed, and report on abnormal terminations.
Because the wait(2) system call must be executed in the parent process, the Shell itself executes wait, without creating a new process.
SEE ALSO sh(1)BUGS
Not all the processes of a 3- or more-stage pipeline are children of the Shell, and thus can't be waited for. (This bug does not apply to
csh(1).)
7th Edition April 29, 1985 WAIT(1)
Check Out this Related Man Page
WAIT(1) BSD General Commands Manual WAIT(1)NAME
wait -- await process completion
SYNOPSIS
wait [pid]
DESCRIPTION
If invoked with no arguments, the wait utility waits until all existing child processes in the background have terminated.
Available operands:
pid If a pid operand is specified, and it is the process ID of a background child process that still exists, the wait utility waits until
that process has completed and consumes its status information, without consuming the status information of any other process.
If a pid operand is specified that is not the process ID of a child background process that still exists, wait exits without waiting
for any processes to complete.
The wait utility exits with one of the following values:
0 The wait utility was invoked with no operands and all of the existing background child processes have terminated, or the process
specified by the pid operand exited normally with 0 as its exit status.
>0 The specified process did not exist and its exit status information was not available, or the specified process existed or its exit
status information was available, and it terminated with a non-zero exit status.
If the specified process terminated abnormally due to the receipt of a signal, the exit status information of wait contains that termination
status as well.
STANDARDS
The wait command is expected to be IEEE Std 1003.2 (``POSIX.2'') compatible.
BSD June 5, 1993 BSD
ok, I configured inetd.conf so that the tftp string
is not commented out, but I cannot get the process to start.
I'm running Solaris 5.8 and need some help.
Cabletron said that it's process is 3485, i tried to kill it, it's the wrong process. I started inetd again and still can't kill it.
i... (15 Replies)
FYI, the GCC compiler is available for OS X. This means you can easily compile all the super GCC opensource. You can see the GCC and other
projects <A HREF=http://www.opensource.apple.com//projects/darwin/1.2/projects.html>HERE</A>.<P>
Also, I looked into how OS X handles OS 9 applications. ... (12 Replies)
I'm need to connect to another host in a script using the telnet command. How do I pass the login and password to be able to connect to the other host from within the script? (10 Replies)
i want to do 2 things
1) i should wait for a file called A.txt to fall on a specific path on the server
2) once the file arrives immediately another script called B.sh should be executed.
Could you please throw somelight on this.
Any code if already present that would be helpful.
... (13 Replies)
Hi,
I'm trying to write a script to decompress a directory full of files. The decompression commands can run in the background, so that many can run at once. But I want to limit the number running at any one time, so that I don't overload the machine.
Something like this:
n=0
for i in *.gz... (15 Replies)
Hi Guys,
I am writing a shell script to check whether the directory is empty or not.
If it is empty then proceed but if it not then wait till it becomes empty.
Is there any way for this?
Suggestions are welcome!!
Thanks in advance!:) (13 Replies)
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)
My server is running HP-UX 11.23 and one Oracle database. The server has 8 CPUs and is mostly idle all the time. Buffer cache is set to 10%min/max with 5GB memory on the server.
I have a user complaining that a batch process is all of a sudden taking a long time to finish. The DBA gave me the... (13 Replies)
Hey guys,
Is it possible to have a worker thread send data out a TCP connection while another thread is waiting using using select() on that same connection?
If not, then what is the correct way to maintain a connection, react to incoming data, and send data over a TCP connection?
Thanks... (16 Replies)
Hello. I want to make a child do some stuff,wait,then the parent does some stuff and then child does some stuff and waits again.I have made the following but it does not work.Can anybody help me?
pid1 = fork();
if (pid1 == -1)
{
perror("Can't create child\n");
... (18 Replies)
Iam having a script which is used to load users and dumpfile in any given schema.Iam trying to autolog the script and have added two fucntion in it.
function init_stdout_redirect {
OUT_LOG=$1
OUT_PIPE=$(mktemp -u)
# Create the output pipe
mkfifo $OUT_PIPE
# Save stdout and... (15 Replies)
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)
Dear All,
I am running a c++ code that will generate various output files.
After generating each and every file I wanted to process that file and remove using shell.
How can I do that?
example for post script:
#!/bin/sh
for dirName in ab ac ad ae;
do
grep -r -n... (15 Replies)
Dear all,
I had script which used to work, but recently it is not working as expected.
I have command line in my shell script to choose the following format from the output_elog and perform some task afterwards on
As you see, I want all numbers in foramt following RED mark except for... (12 Replies)