NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: tool to run scripts in parallel ?

Hello Manuel,

Maybe this helps..You have to modify those scripts and add smth like this :

chomp( my @lines = qx/yourcommands/ );

where "lines" is your output and "yourcommands" are your functions or
whatever you have there.
Also you can redirect your output to a file.

perldoc perlop

On Tue, Sep 30, 2008 at 9:59 PM, Manuel Bouyer 

> Hi,
> For some sysadmin task, I need to start from a main script several
> sub-scripts take some time (copying files around over ssh, running
> remote commands, ...), and which are mostly independants. What I'd
> need is a tool (can be a perl module, as the main script is
> written in perl) that would run start all those sub-scripts in
> parallel, collect stdout/stderr and print it once the script is
> complete (print stdout/stderr as a whole, no interleaved outputs), and
> return a 0 exists status if all scripts did run or != 0 if one script
> failed. Does anyone know such a tool ?
> make may do it but it will not exactly what I want with stdout/stderr ...
> --
> Manuel Bouyer <>
>     NetBSD: 26 ans d'experience feront toujours la difference
> --

Home | Main Index | Thread Index | Old Index