[Tutor] How to ping

Andrei Kulakov ak@silmarill.org
Sat, 22 Jun 2002 22:50:59 -0400


On Sun, Jun 23, 2002 at 12:24:53PM +1000, Dimitrije Nikic wrote:
> Hey people,
> How do you ping an IP address and then assign the ping to a variable?
> Thx for your help...

You could try doing my_var = commands.getoutput("ping ip")

 - Andrei

-- 
Cymbaline: intelligent learning mp3 player - python, linux, console.
get it at: cy.silmarill.org