Python: executing ping and whois

W

WIWA

Hi all,

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?

Thanks,
 
J

Jordan Krushen

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,010
Latest member
MerrillEic

Latest Threads

Top