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.
> pidof ???icecast2 server, this is the icecast discussion list correct? Dave St John (CEO) Mediacast1.com ----- Original Message ----- From: "Drew Bertola" <drew@drewb.com> To: <icecast@xiph.org> Sent: Tuesday, November 04, 2003 12:13 AM Subject: Re: [icecast] capturing pid from command line <p>> 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 > > > --- >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. ><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.
> pidof ???nevermind i misread ya :) ill give that a worl <p>Dave St John (CEO) Mediacast1.com ----- Original Message ----- From: "Drew Bertola" <drew@drewb.com> To: <icecast@xiph.org> Sent: Tuesday, November 04, 2003 12:13 AM Subject: Re: [icecast] capturing pid from command line <p>> 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 > > > --- >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. ><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.
that was interesting LOL keep in mind its capturing the pid in a loop see previous posts results [root@localhost icecast2]# cat pids/* 7060 - 8014-replaced-configfile.xml 7065 7060 - 8400-replaced-configfile.xml 7072 7065 7060 - 8404-replaced-configfile.xml 7095 7072 7065 7060 - 8410-replaced-configfile.xml 7101 7095 7072 7065 7060 - 8604-replaced-configfile.xml 7116 7101 7095 7072 7065 7060 - 8606-replaced-configfile.xml 7123 7116 7101 7095 7072 7065 7060 - 8614-replaced-configfile.xml 7141 7123 7116 7101 7095 7072 7065 7060 - 8616-replaced-configfile.xml 7148 7141 7123 7116 7101 7095 7072 7065 7060 - 8622-replaced-configfile.xml 7162 7148 7141 7123 7116 7101 7095 7072 7065 7060 - 8626-replaced-configfile.xml 7169 7162 7148 7141 7123 7116 7101 7095 7072 7065 7060 - 8628-replaced-configfile.xml 7175 7174 7169 7162 7148 7141 7123 7116 7101 7095 7072 7065 7060 - 8630-replaced-configfile.xml 7201 7175 7169 7162 7148 7141 7123 7116 7101 7095 7072 7065 7060 - 8632-replaced-configfile.xml 7208 7201 7175 7169 7162 7148 7141 7123 7116 7101 7095 7072 7065 7060 - 8634-replaced-configfile.xml 7230 7208 7201 7175 7169 7162 7148 7141 7123 7116 7101 7095 7072 7065 7060 - 8636-replaced-configfile.xml 7237 7230 7208 7201 7175 7169 7162 7148 7141 7123 7116 7101 7095 7072 7065 7060 - 8638-replaced-configfile.xml 7249 7237 7230 7208 7201 7175 7169 7162 7148 7141 7123 7116 7101 7095 7072 7065 7060 - 8640-replaced-configfile.xml 7256 7249 7237 7230 7208 7201 7175 7169 7162 7148 7141 7123 7116 7101 7095 7072 7065 7060 - 8642-replaced-configfile.xml 7277 7256 7249 7237 7230 7208 7201 7175 7169 7162 7148 7141 7123 7116 7101 7095 7072 7065 7060 - 8648-replaced-configfile.xml 7284 7277 7256 7249 7237 7230 7208 7201 7175 7169 7162 7148 7141 7123 7116 7101 7095 7072 7065 7060 - 8650-replaced-configfile.xml 7308 7284 7277 7256 7249 7237 7230 7208 7201 7175 7169 7162 7148 7141 7123 7116 7101 7095 7072 7065 7060 - 8652-replaced-configfile.xml <p><p><p>Dave St John (CEO) Mediacast1.com ----- Original Message ----- From: "Dave St John" <groups@mediacast1.com> To: <icecast@xiph.org> Sent: Tuesday, November 04, 2003 3:16 AM Subject: Re: [icecast] capturing pid from command line <p>> > pidof ???> nevermind i misread ya :) > > ill give that a worl > > > Dave St John > (CEO) Mediacast1.com > ----- Original Message ----- > From: "Drew Bertola" <drew@drewb.com> > To: <icecast@xiph.org> > Sent: Tuesday, November 04, 2003 12:13 AM > Subject: Re: [icecast] capturing pid from command line > > > > 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 > > > > > > --- >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 isneeded.> > 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. ><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.
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 788pidof 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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
tried that already but it doesnt catch the parent, it captures one of the children. Would the fact that the server runs as a user and not as root having anything to do with $! not working, since it works with shoutcast running as root? <p>Dave St John (CEO) Mediacast1.com ----- Original Message ----- From: "Karl Heyes" <karl@xiph.org> To: <icecast@xiph.org> Sent: Tuesday, November 04, 2003 4:51 AM Subject: Re: [icecast] capturing pid from command line <p>> 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 trysomething> along the lines of using a wrapper script > > icecast -c /path/icecast.xml & > echo $! > > > > 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@xiph.org'> containing only the word 'unsubscribe' in the body. No subject is needed. > Unsubscribe messages sent to the list will be ignored/filtered. ><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.