Re: how to connect to a remote machine using python........ pexpect help

2008-01-01 Thread vinoj davis
  Hi,My aim is to connect to a remote machine and execute commands at the remote machine.. such as ifconfig... i found out a module named pexpect if anyone can help me out in thatThanking youRegards,    ---ViNOJ DAViS---Regards, 

Re: how to connect to a remote machine using python........

2007-12-30 Thread Shane Geiger
Some python ssh packages are available if you are wanting to execute commands on a machine that has ssh. ssh servers are available for windows, but they aren't necessarily so well supported. Here's a simple approach that works on ssh servers: import commands hostname = commands.getoutput('ssh [E