Hello All,
I'm attempting to write a simple telnet client. Yes, I've been told that I
should be using twisted to do this. I want to learn to do it myself first,
so that I can fully understand the concepts - then I will scrap it and
switch to using twisted.
When I started, I didn't realize
I haven't been able to find any real examples of pexpect usage, nor
documentation. Just little bits here and there, so I'm kind of
struggling through.
I've got the follow bit of code I'm working with:
def main():
try:
print 'attempting to spawn connection ... '
session =
that pexpect uses a maxread and a
searchwindowsize value, but I'm not sure how to use them.
Any tips? Thanks again.
On Tue, Oct 20, 2009 at 11:26 AM, vince spicer vinces1...@gmail.com wrote:
On Tue, Oct 20, 2009 at 11:11 AM, Nathan Farrar nathan.far...@gmail.com
wrote:
I haven't been able
I'm trying to automate the collection of data to remote devices over
ssh via pexpect. I had originally attempted (with limited success) to
use paramiko, however due to cisco's ssh implimentation I cannot send
mulitple commands over the same connection, which is absolutely
essential. Therefore,
I'm new to python and wondering if there is a way to reference
information about the script that is running. For example, if I was
running a script named FileInfo.py from the directory
/home/username, I'm looking for attributes such that something similar
to:
print self.name
print self.path
I'd like to spend some time exploring the standard library. I'm running
python on Ubuntu. How would I find the location of the modules (find /
-name os.py does not yield results)?
Thanks!
Nathan
___
Tutor maillist - Tutor@python.org