I wonder if anyone has run into this issue before.

I am attempting to collect the PIDs of system/backtick calls ( up to 40 of 
them ) and revisit them to ensure that they completed.  The frontend 
interface is CGI but in this case that part is working fine.  I cannot, 
however, find anything in my 15 O'Reily books or Google which includes how 
to do this without using a shell script to record the information. 

I have tried the following code to test the return values, more to appease 
myself than to challenge the word of the books...

#!/usr/local/bin/perl -w

use strict;

my $command = 'ls -l /';
my $return          = `$command`; 
my @return        = `$command`; 

my $system_scaler  = system( "ls", "-l", "/" ); 
my @system_array = system( "ls", "-l", "/" ); 

Of course, none of these ways of gathering the information actually 
returns the PID associated to the external call.

Has anyone solved this one before?  Any help or guidance would be most 
appreciated!

-----------------------------------------
Jamie Bridges
Asst. Sun Hardware Lead
(V) 770.447.1951
(F) 678.291.9201

************************************************************************
Factory warranty and license transfer policies vary by manufacturer. 
Purchaser is responsible for all software licensing and registration 
requirements imposed by the manufacturer.  The information contained in 
this message and any attachments is confidential and intended only for the 
named recipient(s).  If you have received this message in error, you are 
prohibited from copying, distributing or using the information.  Please 
contact the sender immediately by return email and delete the original 
message.
************************************************************************

Reply via email to