[CentOS] Re: python-interactive for CentOS/EL 4

Tue Oct 24 09:22:37 UTC 2006
Will McDonald <wmcdonald at gmail.com>

On 24/10/06, Will McDonald <wmcdonald at gmail.com> wrote:
> Hi all,
>
> Could anyone point me in the right direction for a package that
> provides the 'interactive' module for Python? I need to do some SSH
> stuff in Python so I grabbed python-paramiko from RPMForge (as always,
> thanks Dag & co.). Paramiko appears to be dependent on python-crypto
> but the RPM doesn't require it..

Gah, ignore me ladies and gents. I'm being dense. :)

[wmcdonald at willspc demos]$ cd /usr/share/doc/python-paramiko-1.6.3/demos/
[wmcdonald at willspc demos]$ ls interactive.py
interactive.py
[wmcdonald at willspc demos]$ python
Python 2.3.4 (#1, Mar 10 2006, 06:12:09)
[GCC 3.4.5 20051201 (Red Hat 3.4.5-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import interactive
>>> dir(interactive)
['__builtins__', '__doc__', '__file__', '__name__', 'has_termios',
'interactive_shell', 'posix_shell', 'socket', 'sys', 'termios', 'tty',
'windows_shell']
>>>

Will.