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

Re: OT: Question to shell script



Hans <hans.ullrich@loop.de> writes:

> What I am exactly want to do:
>
> I have 5 live-build directories. In each I am starting my own script, which is 
> setting variables and so on for the individual build and does some other 
> things (rennamin and copying the resulted ISO and so on).

So you're asking how to do a script with 5 cd commands and 5 start
script commands? What exactly is the problem? If you append your script
starting command with a & symbol, it'll start in the background and your
script can proceed to the next cd command and next script startup
command and so on.

> If bash does not offer this option, I will find another way, but I hope, 
> someone more experienced with shellscripts or bash might have a quick 
> solution. If not, no problem, it does not harm anyone.

Perhaps it'd be easier for you to just open five terminals and manually
start one of the five scripts in each. Keep the terminals around and you
can easily rerun the scripts.

Perhaps a note here, if your scripts mostly copy files around, running
the scripts in parallel may not go much faster if your storage is
already saturated by one of them.



Reply to: