pexpect on solaris 10

C

Chris Pella

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.
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.

Thanks,
Chris
 
J

Jorgen Grahn

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top