> Hi everyone,
> 
>     I have a perl script I am trying to make run quicker.  Currently,
> the script runs line-by-line and executes each line of code.  The next
> line of code does not execute until the previous line is finished.
> 
>     One line of the code tarrs a bunch of files and does not go to the
> next line until the the tar ball is complete.
> 
>     The line of code after the tar is not dependent on the line before
> it.
> 
>    ***THE QUESTION*** 
>     Is there a way I can "background" the line that is doing the tar
>     and
> have the script go to the next line even though the tar is not
> complete?

$pid = system( 1, 'tar ...')

should do what you want.
You may then waitpid() for the tar process to make sure it completed 
and the tarball is ready.

HTH, Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to