Doing a fork shall help. 

Child runs the system command and exit. Pather creats a new child for the
rest.

foreach my $cmd (@cmds) {
  if (fork() == 0) { # child
    system($cmd);
    exit(0);
  }
}

Is this what you need?

Marcos

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, May 21, 2004 8:08 PM
To: Perl Beginners Mailing List
Subject: array output


All, 

I have an array of 40 elements and I want to run a system app command 
against all the elements simultaneously ...well not line by line as in a 
for loop.
I have tried 


does anyone know how to spit out all 40 elements so the app command does 
not eject tapes one by one?
thanks

Derek B. Smith
OhioHealth IT
UNIX / TSM / EDM Teams


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to