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 recent call last):\\n File "/usr/local/https/suid/getdetails.py", line 85, in <module>\\n main()\\n File "/usr/local/https/suid/getdetails.py", line 66, in main\\n mac = RemoteCommand(command,passwd)\\n File "/usr/local/https/suid/getdetails.py", line 42, in RemoteCommand\\n child = pexpect.spawn(command)\\n File "/usr/lib/python2.5/site-packages/pexpect.py", line 375, in __init__\\n self.__spawn()\\n File "/usr/lib/python2.5/site-packages/pexpect.py", line 446, in __spawn\\n raise ExceptionPexpect(\\\'Error! pty.fork() failed: \\\' + str(e))\\npexpect.ExceptionPexpect: Error!
pty.fork() failed: out of pty devices\')')
PLz tell me what is the problem, Thanking you.....................
Regards, ---ViNOJ DAViS---
|
|
5, 50, 500, 5000 - Store N number of mails in your inbox. Click here.
--
http://mail.python.org/mailman/listinfo/python-list