|
From: Marco M. <Mar...@co...> - 2000-11-20 12:44:52
|
I am experiencing problems with the IO::Tty on HPUX 11.0 and 10.20.
The IO::Tty module seemed to compile, make & install okay for me but the
'try' program just hangs when run it (note: I experience the same hangs when
using Expect.pm)
I have tried the sample script in the CPAN IO::Tty module doco and that also
hangs (when reading from a tty slave)
I am using perl 5.06, Expect 1.08 & IO::Tty 0.04
Here is my test script:
------
#!/usr/bin/perl
use IO::Pty;
$pty = new IO::Pty;
$slave = $pty->slave;
foreach $val (1..10) {
print $pty "$val\n";
$_ = <$slave>; # I know the script hangs here when trying to read from the
slave tty.
print "$_";
}
close($slave);
##end of test script
The following is the end part of a system call trace of this program
executing (using tusc):
open("/dev/pts/9", O_RDWR|0x800, 0666) ........................... = 4
fstat64(4, 0x400193b0) ........................................... = 0
fcntl(4, F_SETFD, 1) ............................................. = 0
sigsetstatemask(0x17, NULL, 2139032768) .......................... = 0
ioctl(3, TCGETA, 0x7f7f1418) ..................................... ERR#22
EINVAL
write(3, "1 \n", 2) .............................................. = 2
ioctl(4, TCGETA, 0x7f7f2d58) .....................................
[sleeping]
##end of trace.
Has anyone got IO::Tty (or Expect.pm) running on HPUX???
Any assistance appreciated
Marco
This email and any attachments may contain privileged and
confidential information and are intended for the named
addressee only. If you have received this e-mail in error,
please notify the sender and delete this e-mail immediately.
Any confidentiality, privilege or copyright is not waived or
lost because this e-mail has been sent to you in error. It
is your responsibility to check this e-mail and any
attachments for viruses.
|