stuck with Pexpect script need help!!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • darshak bavishi
    New Member
    • Dec 2010
    • 10

    stuck with Pexpect script need help!!

    got ready made code for ssh to unix using python

    host machine is windows now when i run this its gives following error :
    Code:
    Traceback (most recent call last):
      File "C:\Python26\pexpect-2.1\pexpect-2.1\pxssh.py", line 1, in <module>
        from pexpect import *
      File "C:\Python26\pexpect-2.1\pexpect-2.1\pexpect.py", line 83, in <module>
        Pexpect is intended for UNIX-like operating systems.""")
    ImportError: No module named resource
    A critical module was not found. Probably this operating system does not support it.
    Pexpect is intended for UNIX-like operating systems.
    >>> ================================ RESTART ================================
    >>> 
    
    Traceback (most recent call last):
      File "C:\Python26\ssh_session.py", line 7, in <module>
        from pexpect import *
    ImportError: No module named pexpect
    >>>


    Can we use pexpect from windows host machine ?!
    Last edited by Dormilich; Dec 13 '10, 09:39 PM.
  • darshak bavishi
    New Member
    • Dec 2010
    • 10

    #2
    came to know that pexpect supports only unix based machine

    Comment

    Working...