From: Anders W. <And...@ac...> - 2002-08-29 20:02:45
|
If I remember correctly, it never makes it out of the call to spawn, so I can't do that. anders -----Original Message----- From: Austin Schutz [mailto:te...@of...] Sent: Thursday, August 29, 2002 12:53 PM To: ex...@ih... Cc: exp...@li...; jas...@su... Subject: Re: [Expectperl-discuss] Problem running in bg On Thu, Aug 29, 2002 at 09:23:20AM -0700, ex...@ih... wrote: > > > > 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 > > Have you tried reading from the tty to see if that wakes sh up? i.e.: $exp->spawn("/sbin/sh"); $exp->expect(undef,'$ '); print STDERR "launched\n"; Austin ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Expectperl-discuss mailing list Exp...@li... https://lists.sourceforge.net/lists/listinfo/expectperl-discuss |