pexpect on solaris 10

Jorgen Grahn grahn+nntp at
Wed Mar 4 16:35:52 CET 2009

On Tue, 3 Mar 2009 14:37:20 -0800 (PST), Chris Pella <skipaddle at> wrote:
> Has anybody had success getting pexpect to work well on solaris 10
> (x86)? I am trying to do some test automation which involves
> controlling some other processes. Soon after I spawn the process I am
> trying to control a message comes up on stdout telling me that a tty
> has been closed.

I seem to recall reading about fixes for issues like that in pexpect
release notes ... but I cannot find that now. The documentation says
it supports Solaris, but that there are certain issues, and that he
kind of suspects the Python pty module for at least some of them.

There are workarounds in pexpect for Solaris; maybe you use an older
version without them?

> If there is something peculiar with the solaris pty than I may be
> better off just using plain old expect and controlling it from python
> because I don't have a lot of time to go on a fishing expedition.  I
> was hoping to be able to use the same code on various linux
> distros,solaris,AIX, and HP-UX.
> If anybody has had success on solaris 10 with pexpect I'd be grateful
> to hear about it.

Plain old expect is superior in many ways ... but it has that nasty
Tcl syntax.


  // Jorgen Grahn <grahn@        Ph'nglui mglw'nafh Cthulhu
\X/>          R'lyeh wgah'nagl fhtagn!

More information about the Python-list mailing list