Re: Sending ECHO_REQUEST (pinging) with python

2007-03-27 Thread Jorgen Grahn
On Mon, 26 Mar 2007 16:50:09 +0200, Thomas Dybdahl Ahle [EMAIL PROTECTED] wrote: Den Mon, 26 Mar 2007 11:24:34 +0200 skrev Michal 'vorner' Vaner: On Mon, Mar 26, 2007 at 08:30:16AM +0200, Thomas Dybdahl Ahle wrote: Do anybody know how to do this in python? You need root for that and the

Re: Sending ECHO_REQUEST (pinging) with python

2007-03-26 Thread Michael Bentley
On Mar 26, 2007, at 1:30 AM, Thomas Dybdahl Ahle wrote: Hi, I've writing a python application in which I'd like to have a small ping label, to always tell the current ping time to the server. It seems however that I have to be root to send those imcp packages, but I guess there must be

Re: Sending ECHO_REQUEST (pinging) with python

2007-03-26 Thread Michael Bentley
On Mar 26, 2007, at 1:30 AM, Thomas Dybdahl Ahle wrote: It seems however that I have to be root to send those imcp packages, but I guess there must be a workaround since I can easily use the ping command as ordinary user. The workaround your ping command is using btw, is probably

Re: Sending ECHO_REQUEST (pinging) with python

2007-03-26 Thread Michal 'vorner' Vaner
On Mon, Mar 26, 2007 at 08:30:16AM +0200, Thomas Dybdahl Ahle wrote: Hi, I've writing a python application in which I'd like to have a small ping label, to always tell the current ping time to the server. It seems however that I have to be root to send those imcp packages, but I guess

Re: Sending ECHO_REQUEST (pinging) with python

2007-03-26 Thread Nick Craig-Wood
Michael Bentley [EMAIL PROTECTED] wrote: On Mar 26, 2007, at 1:30 AM, Thomas Dybdahl Ahle wrote: It seems however that I have to be root to send those imcp packages, but I guess there must be a workaround since I can easily use the ping command as ordinary user. The workaround your

Re: Sending ECHO_REQUEST (pinging) with python

2007-03-26 Thread Thomas Dybdahl Ahle
Den Mon, 26 Mar 2007 11:24:34 +0200 skrev Michal 'vorner' Vaner: On Mon, Mar 26, 2007 at 08:30:16AM +0200, Thomas Dybdahl Ahle wrote: Do anybody know how to do this in python? You need root for that and the ping command is allowed to have them by suid bit. You can execute ping from inside

Re: Sending ECHO_REQUEST (pinging) with python

2007-03-26 Thread Thomas Dybdahl Ahle
Den Mon, 26 Mar 2007 06:30:04 -0500 skrev Nick Craig-Wood: Michael Bentley [EMAIL PROTECTED] wrote: On Mar 26, 2007, at 1:30 AM, Thomas Dybdahl Ahle wrote: It seems however that I have to be root to send those imcp packages, but I guess there must be a workaround since I can easily use the

Re: Sending ECHO_REQUEST (pinging) with python

2007-03-26 Thread Jean-Paul Calderone
On Mon, 26 Mar 2007 16:50:33 +0200, Thomas Dybdahl Ahle [EMAIL PROTECTED] wrote: Den Mon, 26 Mar 2007 06:30:04 -0500 skrev Nick Craig-Wood: Michael Bentley [EMAIL PROTECTED] wrote: On Mar 26, 2007, at 1:30 AM, Thomas Dybdahl Ahle wrote: It seems however that I have to be root to send those

Re: Sending ECHO_REQUEST (pinging) with python

2007-03-26 Thread Nick Craig-Wood
Jean-Paul Calderone [EMAIL PROTECTED] wrote: On Mon, 26 Mar 2007 16:50:33 +0200, Thomas Dybdahl Ahle [EMAIL PROTECTED] wrote: Den Mon, 26 Mar 2007 06:30:04 -0500 skrev Nick Craig-Wood: Under linux the only priviledge you need is CAP_NET_RAW. It is possible to give this to a process - a

Sending ECHO_REQUEST (pinging) with python

2007-03-25 Thread Thomas Dybdahl Ahle
Hi, I've writing a python application in which I'd like to have a small ping label, to always tell the current ping time to the server. It seems however that I have to be root to send those imcp packages, but I guess there must be a workaround since I can easily use the ping command as