From: mgraham <mg...@to...> - 2000-09-29 18:30:23
|
I'm finding that Expect hangs on a trivial example on HP/UX: #!/opt/local/bin/perl use strict; use Expect; my $exp = Expect->spawn('ls', '-la'); The program just hangs and never completes. This runs fine under Linux. Using the expect program (v5) on the same HP/UX system, I can run the following without problems: bash-2.04$ expect expect1.1> spawn ls -la spawn ls -la 20348 expect1.2> interact total 16 drwxr-xr-x 2 mgraham ops 96 Sep 29 14:17 . drwxr-xr-x 6 mgraham ops 4096 Sep 29 14:17 .. -rwxr-xr-x 1 mgraham ops 93 Sep 29 14:17 exp.pl After turning on Expect.pm debugging in the perl script ($Expect::Debug = 2), I get the following output: Spawned 'ls -la' spawn id(3) Pid: 20378 Tty: /dev/pts/11 Closing spawn id(3). From my experience on Linux, I think I should also see details of the process from the child's point of view. I would like to debug this issue further, but I don't really know where to start. Any help would be greatly appreciated... System info: Expect.pm 1.08 perl 5.005_03 PA-RISC2.0 HP/UX B.11.00 Michael |