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

PSLIST(1)						    BSD General Commands Manual 						 PSLIST(1)

NAME
pslist -- control processes and their descendants SYNOPSIS
pslist [pid/name...] pslist -h | --help pslist -v | --version rkill [-SIG] pid/name... rrenice [+/-]pri pid/name... DESCRIPTION
The pslist utility examines the list of current processes to find a specified process and all its descendants. A process may be specified either by name or by process ID. If no arguments are given, pslist displays a list of the whole process tree. For each process specified on the command line, pslist outputs a line containing the process ID, the command name, and the PIDs of all the descendants (and their descen- dants, etc.). When invoked as rkill, this utility does not display information about the processes, but sends them all a signal instead. If not specified on the command line, a terminate (SIGTERM) signal is sent. When invoked as rrenice, this utility does not display information about the processes, but attempts to set their nice value instead. RETURN VALUES
The pslist utility exits 0 on success, and >0 if an error occurs. SEE ALSO
pgrep(1), pkill(1) HISTORY
The pslist utility was written by Peter Pentchev in 2000. AUTHORS
Peter Penchev <roam@ringlet.net> BSD
June 1, 2009 BSD
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