I tested your code again on SunOS and it worked. Since I don't admin the machines I'm not sure if the system has been changed since I first claimed it didn't work. Perhaps I had run into a more complex problem with IO::Pty but don't feel the need to try to reproduce it any longer.