From: Jason P. <jas...@su...> - 2002-08-28 11:37:48
|
That seems to work, but does anyone know why? It's not an optimal solution as this is an app that other's are using as well. I had been running the same code fine under perl 5.6.1 with an older Expect.pm and IO::Pty.pm. Thanks! Jay Alexander Bourov wrote: > Jason, I had the same effect on Solaris under ksh and bash. > Try the same from the sh and it will work fine. > > -----Original Message----- > From: Jason Penney [mailto:jas...@su...] > Sent: Tuesday, August 27, 2002 12:48 PM > To: exp...@li... > Subject: [Expectperl-discuss] Problem running in bg > > > Hi, > > I'm trying to run my perl code in the background under Solaris (tried > under 5.6,7 and 9), but if I use Expect it hangs with "Suspended (tty > output)". I'm using perl 5.8.0. > > Here's my test file: > > #!/usr/bin/env perl > > use Expect; > > print STDERR "launching\n"; > my $exp = Expect->new(); > $exp->spawn("/sbin/sh"); > print STDERR "launched\n"; > > > % ./test.pl > launching > launched > > % ./test.pl & > [3] 4179 > % launching > [3] + Suspended (tty output) ./test.pl > > Any help would be greatly appreciated! > > Thanks, > Jay Penney > > > > ------------------------------------------------------- > This sf.net email is sponsored by: OSDN - Tired of that same old > cell phone? Get a new here for FREE! > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 > _______________________________________________ > Expectperl-discuss mailing list > Exp...@li... > https://lists.sourceforge.net/lists/listinfo/expectperl-discuss |