That's an idea. I'll play around and see what happens with the output when I manually kill the process. I would hope Perl would still get the output, but we'll see.
> -----Original Message----- > From: David Greenberg [mailto:[EMAIL PROTECTED] > Sent: Friday, August 20, 2004 11:00 AM > To: vega, james > Cc: [EMAIL PROTECTED] > Subject: Re: RE: [Perl-unix-users] Odd problems from shell > commands run via RP C service > > > Is it possible that the process is being killed externally. > If that happens, the output using backticks might be lost > while some or all of the output will still be written to a > file. Maybe it's something along these lines? > > -David > > > ----- Original Message ----- > From: vega, james <[EMAIL PROTECTED]> > Date: Fri, 20 Aug 2004 10:39:52 -0400 > Subject: RE: [Perl-unix-users] Odd problems from shell > commands run via RP > C service > To: "[EMAIL PROTECTED]" > <[EMAIL PROTECTED]> > > > That's what we're doing. As I said, it's only sporadically > that these commands don't return STDOUT. For the most part, > they work, but sometimes we have problems. One way that > we've worked around the STDOUT problem is by redirecting > STDOUT to a file and then reading back the file, but that > shouldn't be necessary. I've stepped through the code and > run the command directly on the host when I see the problem > occur in our script to see if it's something odd happening on > the system itself, but no luck there. > > > -----Original Message----- > From: Dragos CIULICA [mailto:[EMAIL PROTECTED] > Sent: Friday, August 20, 2004 9:54 AM > To: vega, james > Cc: '[EMAIL PROTECTED]' > Subject: RE: [Perl-unix-users] Odd problems from shell > commands run via RP C service > > Donn't know about return code ... > Have you tried: > > my $command_output = `some_system_command_here`; #look carefully > here ... it is <<`>>, not <<'>> > print "output:\n" . $command_output; > > Good Luck, > Dragos CIULICA. _______________________________________________ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs