& L) {
typedef shared_ptr<_MultiCommandJob> P;
list jobs;
list _jobs;
for( list::iterator i = L.begin(); i != L.end(); i++ ) {
Target& d = *i;
_MultiCommandJob *j = new _MultiCommandJob(cmd, d);
jobs.push_back(P(j));
_jobs.push_back(j);
}
BackgroundJob::go(_jobs);
BackgroundJob::wait(_jobs,5);
}
}