From: Simon T. <se...@no...> - 2004-11-29 08:51:34
|
I have had similar experience with this. I don't have a solution but my investigations indicated it might be shell specific - what shell are you using on Solaris? I originally wanted to extend my app to use POE but the processes kept hanging as soon as they were forked and run in the bg. Simon -----Original Message----- From: exp...@li... [mailto:exp...@li...] Sent: 02 November 2004 18:36 To: exp...@li... Cc: 'Eric Feng' Subject: [Expectperl-discuss] problem with Expect::spawn() when running in background on Solaris Hi, I am having problem with the following perl program which calls Expect::spawn() when running in background on Solaris. It got suspended. % cat bg.pl #!/usr/local/bin/perl5.6 use Expect; my $exp = Expect->spawn("echo hello"); $exp->soft_close(); % bg.pl hello % bg.pl & [1] 2191 % [1] + Suspended (tty output) bg.pl % fg bg.pl Hello It works fine on linux (both foreground and background). Is this a perl bug or solaris bug? Is there a setting/workaround to get it to work in background on solaris? Any help is appreciated. I am using perl5.6, the Expect moduls is the latest I downloaded on CPAN, the Solaris OS is both 5.6 and 5.8. -Eric Feng ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Expectperl-discuss mailing list Exp...@li... https://lists.sourceforge.net/lists/listinfo/expectperl-discuss |