Re: using text file to get ip address from hostname

2012-09-19 Thread Dan Katorza
בתאריך יום רביעי, 19 בספטמבר 2012 15:28:23 UTC+3, מאת Dan Katorza: > בתאריך יום רביעי, 19 בספטמבר 2012 12:11:04 UTC+3, מאת Dan Katorza: > > > בתאריך יום רביעי, 19 בספטמבר 2012 11:50:56 UTC+3, מאת Dan Katorza: > > > > > > > בתאריך יום רביעי, 19 בספטמבר 2012 11:14:29 UTC+3, מאת Chris Angelico: >

Re: using text file to get ip address from hostname

2012-09-19 Thread Dave Angel
On 09/19/2012 08:28 AM, Dan Katorza wrote: > בתאריך יום רביעי, 19 בספטמבר 2012 12:11:04 UTC+3, מאת Dan Katorza: >> >> hi, ll like >> found a solution, >> it's not quite like Chris advised but it works. Not at all like Chris advised. But it also doesn't help you understand programming. Two conce

Re: using text file to get ip address from hostname

2012-09-19 Thread Dan Katorza
בתאריך יום רביעי, 19 בספטמבר 2012 12:11:04 UTC+3, מאת Dan Katorza: > בתאריך יום רביעי, 19 בספטמבר 2012 11:50:56 UTC+3, מאת Dan Katorza: > > > בתאריך יום רביעי, 19 בספטמבר 2012 11:14:29 UTC+3, מאת Chris Angelico: > > > > > > > On Wed, Sep 19, 2012 at 5:41 PM, Dan Katorza wrote: > > > > > > >

Re: using text file to get ip address from hostname

2012-09-19 Thread Dan Katorza
בתאריך יום רביעי, 19 בספטמבר 2012 11:50:56 UTC+3, מאת Dan Katorza: > בתאריך יום רביעי, 19 בספטמבר 2012 11:14:29 UTC+3, מאת Chris Angelico: > > > On Wed, Sep 19, 2012 at 5:41 PM, Dan Katorza wrote: > > > > > > > > > > > > > > Hello again, > > > > > > > I have another question and i hope y

Re: using text file to get ip address from hostname

2012-09-19 Thread Chris Angelico
On Wed, Sep 19, 2012 at 6:50 PM, Dan Katorza wrote: > i know about the while loop , but forgive me i just don't have a clue how to > use it for this situation. You've already used one. What you need to do is surround your entire code with the loop, so that as soon as it gets to the bottom, it go

Re: using text file to get ip address from hostname

2012-09-19 Thread Dan Katorza
בתאריך יום רביעי, 19 בספטמבר 2012 11:14:29 UTC+3, מאת Chris Angelico: > On Wed, Sep 19, 2012 at 5:41 PM, Dan Katorza wrote: > > > > > > Hello again, > > > I have another question and i hope you will understand me.. > > > Is there any option where you can set the program to go back to lets say

Re: using text file to get ip address from hostname

2012-09-19 Thread Chris Angelico
On Wed, Sep 19, 2012 at 5:41 PM, Dan Katorza wrote: > > Hello again, > I have another question and i hope you will understand me.. > Is there any option where you can set the program to go back to lets say the > top of the code? > I mean if the program finished the operation and i want to stay in

Re: using text file to get ip address from hostname

2012-09-19 Thread Dan Katorza
בתאריך יום ראשון, 16 בספטמבר 2012 01:43:31 UTC+3, מאת Dan Katorza: > בתאריך יום רביעי, 12 בספטמבר 2012 17:24:50 UTC+3, מאת Dan Katorza: > > > hello , > > > > > > > > > > > > i'm new to Python and i searched the web and could not find an answer for > > my issue. > > > > > > > > > > >

Re: using text file to get ip address from hostname

2012-09-17 Thread Thomas Rachel
Am 15.09.2012 18:20 schrieb Dan Katorza: hello again friends, thanks for everyone help on this. i guess i figured it out in two ways. the second one i prefer the most. i will appreciate if someone can give me some tips. thanks again so... ---

Re: using text file to get ip address from hostname

2012-09-15 Thread Dan Katorza
בתאריך יום רביעי, 12 בספטמבר 2012 17:24:50 UTC+3, מאת Dan Katorza: > hello , > > > > i'm new to Python and i searched the web and could not find an answer for my > issue. > > > > i need to get an ip address from list of hostnames which are in a textfile. > > > > this is what i have so far

Re: using text file to get ip address from hostname

2012-09-15 Thread Hans Mulder
On 15/09/12 18:20:42, Dan Katorza wrote: > בתאריך יום רביעי, 12 בספטמבר 2012 17:24:50 UTC+3, מאת Dan Katorza: >> hello , >> >> >> >> i'm new to Python and i searched the web and could not find an answer for my >> issue. >> >> >> >> i need to get an ip address from list of hostnames which are in a

Re: using text file to get ip address from hostname

2012-09-15 Thread Dan Katorza
בתאריך יום רביעי, 12 בספטמבר 2012 17:24:50 UTC+3, מאת Dan Katorza: > hello , > > > > i'm new to Python and i searched the web and could not find an answer for my > issue. > > > > i need to get an ip address from list of hostnames which are in a textfile. > > > > this is what i have so far

Re: using text file to get ip address from hostname

2012-09-12 Thread Jason Friedman
> i need to get an ip address from list of hostnames which are in a textfile. > > this is what i have so far > -- > #!/usr/bin/env python > #Get the IP Address > > import socket > hostname = 'need it to read from a text file' >

Re: using text file to get ip address from hostname

2012-09-12 Thread Terry Reedy
On 9/12/2012 10:41 AM, dkato...@gmail.com wrote: it's not really homework, i found a lab exercise on the web > and i;m trying to study with it. maybe not the most efficient way. i have a file with hostnames ordered line by line. Key fact for this exercise: open files are iterable. So your

Re: using text file to get ip address from hostname

2012-09-12 Thread Alister
On Wed, 12 Sep 2012 07:41:10 -0700, dkatorza wrote: > בתאריך יום רביעי, 12 בספטמבר 2012 17:24:50 UTC+3, מאת dkat...@gmail.com: >> hello , >> >> >> >> i'm new to Python and i searched the web and could not find an answer >> for my issue. >> >> >> >> i need to get an ip address from list of ho

Re: using text file to get ip address from hostname

2012-09-12 Thread dkatorza
בתאריך יום רביעי, 12 בספטמבר 2012 17:24:50 UTC+3, מאת dkat...@gmail.com: > hello , > > > > i'm new to Python and i searched the web and could not find an answer for my > issue. > > > > i need to get an ip address from list of hostnames which are in a textfile. > > > > this is what i have

Re: using text file to get ip address from hostname

2012-09-12 Thread Chris Angelico
On Thu, Sep 13, 2012 at 12:24 AM, wrote: > i'm new to Python and i searched the web and could not find an answer for my > issue. > > i need to get an ip address from list of hostnames which are in a textfile. This is sounding like homework, so I'll just give you a basic pointer. You have there