IP list generation

S

Stephen Briley

Hi all,

I would like to write a python script that takes input
of 2 ip address, one a start address and the other the
end address and prints a list of all ip address in
between in dotted-decimal format. If so, what is the
recommended way? Is there a way to do this with the
supplied python modules?

Thanks!

__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html
 
K

Krzysztof Stachlewski

I would like to write a python script that takes input
of 2 ip address, one a start address and the other the
end address and prints a list of all ip address in
between in dotted-decimal format. If so, what is the
recommended way? Is there a way to do this with the
supplied python modules?

What do you mean by addresses in between?
Maybe capturing the output of 'traceroute' command is
the thing you are searching for?

Stach
 
P

Peter Hansen

Stephen said:
I would like to write a python script that takes input
of 2 ip address, one a start address and the other the
end address and prints a list of all ip address in
between in dotted-decimal format. If so, what is the
recommended way? Is there a way to do this with the
supplied python modules?

If you mean "is there a standard module which does exactly this?"
then the answer is no.

There may well be an appropriate method in a package somewhere out
there already.

It might help to (a) give an example, and (b) describe the ultimate
purpose of script, so you can get more helpful answers.

-Peter
 
P

Paul McGuire

Stephen Briley said:
Hi all,

I would like to write a python script that takes input
of 2 ip address, one a start address and the other the
end address and prints a list of all ip address in
between in dotted-decimal format. If so, what is the
recommended way? Is there a way to do this with the
supplied python modules?

Thanks!

__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html
You posted this exact same request 3 days ago. On 2/15, I posted a working
function in response to that post. It should still be accessible in the
newsgroup archive.
 

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

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,278
Latest member
BuzzDefenderpro

Latest Threads

Top