I am using pexpect with Cgi to ssh into remote
machine,Whenever i run a script which does ssh using pexpect from the linux terminal it gives me the correct result, but when i call the script using commands module from the cgi program i am getting the following error.(0, '(256, \'Traceback (most r
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,
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
hi all, i am new to python, can anyone tell me how can i connect to a remote machine using python and execute commands.Thanking you..Regards, ---ViNOJ DAViS---
Chat on a cool, new interface. No download required. Click here.
--
http://mail.python.org/mailman/list