[icecast] capturing pid from command line

Karl Heyes karl at xiph.org
Tue Nov 4 03:51:42 PST 2003



On Tue, 2003-11-04 at 07:13, Drew Bertola wrote:
> On Mon, 2003-11-03 at 21:53, Dave St John wrote:
> > Anyone know of or how to capture the pid via the command line in bash?
> 
> pidof ???
> 
> $ pidof httpd
> 827 825 824 788

pidof is ok if there is only on instance of the process, else try something
along the lines of using a wrapper script

icecast -c /path/icecast.xml &
echo $!

<p><p>karl.

--- >8 ----
List archives:  http://www.xiph.org/archives/
icecast project homepage: http://www.icecast.org/
To unsubscribe from this list, send a message to 'icecast-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Icecast mailing list