Python: executing ping and whois

Jordan Krushen jordan at krushen.com
Thu Aug 21 01:06:35 CEST 2003


On 20 Aug 2003 14:03:18 -0700, WIWA <wim_wauters at skynet.be> wrote:

> Anybody that could tell me how to execute some Linux commands using
> Python.
> The application is that I want to be able from a website to launch a
> Python script and that python script should be able to ping to the
> provided IP address, or should do a whois of that IP address. I want
> to use the existing Linux commands if possible.
>
> Anyone has an idea or tutorial?

http://python.org/doc/current/lib/module-commands.html

Should be just what you want.

J.




More information about the Python-list mailing list