I am new to Python (and programming). In teaching myself I wrote a
small program that will pick random lottery numbers, I want to check for
duplicates and rerun the random function. But I am hitting a wall.
This is what I think should work, but I still get duplicates. TIA.
print "\n"
count =
Hello,
I am trying to capture telnet output to a file. For example I want to
telnet into a router and run the command “show arp” and be able to
capture all the arp information that normally would show up on the
screen to a file on my system.I am using python and pexpect to
backup my router co
I was not aware of script. Thanks!
- Original Message -
From: Bill Campbell <[EMAIL PROTECTED]>
Date: Monday, October 16, 2006 1:55 pm
Subject: Re: [Tutor] Capture telnet output to a file?
To: tutor@python.org
> On Mon, Oct 16, 2006, [EMAIL PROTECTED] wrote:
> >Hello,
> >
> >I am trying
That looks like it will do what I want.
Thank You!
- Original Message -
From: Kent Johnson <[EMAIL PROTECTED]>
Date: Monday, October 16, 2006 2:06 pm
Subject: Re: [Tutor] Capture telnet output to a file?
To: [EMAIL PROTECTED]
Cc: tutor@python.org
> [EMAIL PROTECTED] wrote:
> > Hello,
> >
I am stumped. I am trying to pass the variable 'savename' to a string
and get errors.
can someone tell me why? Thanks to all on this list. (The problem
happens in the for loop 1st line)
This is my error
Traceback (most recent call last):
File "./ArpAcl.py", line 39, in ?
fout = file('/h