Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pwait(1) [freebsd man page]

PWAIT(1)						    BSD General Commands Manual 						  PWAIT(1)

NAME
pwait -- wait for processes to terminate SYNOPSIS
pwait [-v] pid ... DESCRIPTION
The pwait utility will wait until each of the given processes has terminated. The following option is available: -v Print the exit status when each process terminates. DIAGNOSTICS
The pwait utility returns 0 on success, and >0 if an error occurs. Invalid pids elicit a warning message but are otherwise ignored. SEE ALSO
kill(1), pkill(1), ps(1), wait(1), kqueue(2) NOTES
pwait is not a substitute for the wait(1) builtin as it will not clean up any zombies or state in the parent process. HISTORY
A pwait command first appeared in SunOS 5.8. BSD
November 1, 2009 BSD

Check Out this Related Man Page

wait(1) 						      General Commands Manual							   wait(1)

NAME
wait - await process completion SYNOPSIS
[pid] DESCRIPTION
If no argument is specified, waits until all processes (started with of the current shell have completed, and reports on abnormal termina- tions. If a numeric argument pid is given and is the process ID of a background process, waits until that process has completed. Other- wise, if pid is not a background process, exits without waiting for any processes to complete. Because the system call must be executed in the parent process, the shell itself executes without creating a new process (see wait(2)). Command-Line Arguments supports the following command line arguments: The unsigned decimal integer process ID of a command, whose termination is to wait for. WARNINGS
Some processes in a 2-or-more-stage pipeline may not be children of the shell, and thus cannot be waited for. SEE ALSO
csh(1), ksh(1), sh-posix(1), sh(1), wait(2). STANDARDS CONFORMANCE
wait(1)
Man Page

4 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

functionalities of PFILES

Hello every body. Do anyone describe to me functionalities of PFILES (2 Replies)
Discussion started by: hoang
2 Replies

2. UNIX for Dummies Questions & Answers

Process Wait on DG UX

Does anyone know what the equivalent command to pwait on Solaris is on DG/UX. I need my script to kick off a process and wait till it is complete before continuing with the script. (4 Replies)
Discussion started by: fabbas
4 Replies

3. Solaris

Running from Shell Vs running from RC script

Hi, i have a script which need to do behave differently when run as a startup process from init.d/ rc2.d script and when run manually from shell. How do i distinguish whether my script is run by init process or by shell?? Will the command /proc/$$/psinfo | grep "myscript" work well???... (2 Replies)
Discussion started by: vickylife
2 Replies

4. Linux

Stuck in pthread_cond_signal()

I am developing a multi-threaded library that helps the transformation of messages between threads in different processes using shared memory. I am using the pthreads condition facility in order to synchronize access to the shared memory slots through which the messages are passed. My test... (2 Replies)
Discussion started by: dhzdh
2 Replies