still no workie :( You guys think you could add this internaly in the icecast server? (icecast.xml) <server_pid>/path/to/my/file.pid</server_pid> instead of using a shell script to facilitate this. <p>Dave St John (CEO) Mediacast1.com ----- Original Message ----- From: "Brendan Cully" <brendan@xiph.org> To: <icecast@xiph.org> Sent: Tuesday, November 04, 2003 6:24 PM Subject: Re: [icecast] capturing pid from command line <p>> On Tuesday, 04 November 2003 at 18:12, Dave St John wrote:> > tried that already but it doesnt catch the parent, it captures one ofthe> > 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? > > ... > > > icecast -c /path/icecast.xml & > > > echo $! > ... > > off the top of my head, to get the parent of $! you might try > something like: > > child=$! > parent=`ps -ef | egrep "^[a-z]+ *$child" | awk '{print $3}' > > -b > --- >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 Wednesday 05 November 2003 12:43, Dave St John wrote:> still no workie :( > > You guys think you could add this internaly in the icecast server? > (icecast.xml) > <server_pid>/path/to/my/file.pid</server_pid> > > instead of using a shell script to facilitate this.That would be possible. Would you care to define the semantics of this option in a platform-independent way? Mike --- >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.
Of course this wouldnt be an option for Win32, as oddocks console can be ran as a NT Service. Obviously this would only be needed for *nx environments Maybe #ifdef _WIN32 #define pid #endif Im no c/c++ guru but it seems something like that added to whatever.c file? and of course the added source files to facilitate this, thats why you guys are the programmers and im just the promoters with ideas :) <p><p>Dave St John (CEO) Mediacast1.com ----- Original Message ----- From: "Michael Smith" <msmith@xiph.org> To: <icecast@xiph.org> Sent: Tuesday, November 04, 2003 8:12 PM Subject: Re: [icecast] capturing pid from command line <p>> On Wednesday 05 November 2003 12:43, Dave St John wrote:> > still no workie :( > > > > You guys think you could add this internaly in the icecast server? > > (icecast.xml) > > <server_pid>/path/to/my/file.pid</server_pid> > > > > instead of using a shell script to facilitate this. > > That would be possible. Would you care to define the semantics of thisoption> in a platform-independent way? > > Mike > > --- >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.