|
From: Roland G. <Rol...@al...> - 2000-10-03 11:44:25
|
mgraham wrote:
>
> 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.
It also works on Solaris.
> 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
Sorry that I cannot be of more help. You might want to
post this to the newsgroups (you probably already have),
as this mailing list isn't really well staffed yet.
I haven't announced the new Expect release to the
newsgroups yet due to problems in CPAN (you cannot install
the new version with CPAN.pm, you'd get the old one :-( ),
so we have a rather small user community. But I hope this
will change soon.
Roland
--
RGi...@us...
|