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 -- Drew <p>--- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Anyone know of or how to capture the pid via the command line in bash? i.e. i use this to capture shoutcast's process id #!/bin/bash SRV=`cat serverlst.txt` rm -rf pids/* <p>for c in $SRV ; do nohup ./sc_serv servers/$c > /dev/null 2>&1 & echo "$! - $c" | tee pids/$c.pid done that works successfully with shoutcast but not with icecast2, ideas anyone? <p>Dave St John (CEO) Mediacast1.com <p>--- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
hello ; can't recall where i got it from , but this should work ., ps auxw | fgrep icecast | fgrep -v fgrep | awk '{print $2}' a:/, <p>On Mon, 3 Nov 2003, Dave St John wrote:> Anyone know of or how to capture the pid via the command line in bash? > > i.e. i use this to capture shoutcast's process id > #!/bin/bash > SRV=`cat serverlst.txt` > > rm -rf pids/* > > > for c in $SRV ; do > > nohup ./sc_serv servers/$c > /dev/null 2>&1 & > > echo "$! - $c" | tee pids/$c.pid > > done > > that works successfully with shoutcast but not with icecast2, ideas anyone? > > > Dave St John > (CEO) Mediacast1.com > > > --- >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@xiph.org' > containing only the word 'unsubscribe' in the body. No subject is needed. > Unsubscribe messages sent to the list will be ignored/filtered. >--- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
oddsock wrote:> there are currently no subscription based implementations built in > icecast2. >I don't kow if anyone remembers myplay.com - but we basically built it on top of icecast with smart access controls suitable for subscription services. Sure, that was icecast v1.0 but it ultimately isn't that different. Of course... it still takes some time. The real work is all in the backend. Scott Manley --- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.