comparison convert.pl @ 6:a012d31df380

Made convert.pl work in parallel. Restored files in less than 2 minutes!
author Robert McIntyre <rlm@mit.edu>
date Fri, 21 Oct 2011 07:23:22 -0700
parents b6e64e348e47
children
comparison
equal deleted inserted replaced
5:b6e64e348e47 6:a012d31df380
275 FD.spc 275 FD.spc
276 FE.spc 276 FE.spc
277 FF.spc); 277 FF.spc);
278 278
279 279
280 `mkdir ./output`;
281
280 for (0..$#targets){ 282 for (0..$#targets){
281 283
282 284 my $pid = fork();
283 $command = "./build/spc_convert -s 100" . " -i ./test-files/" . $sources[$_] . 285
284 " -o ./output/" . $targets[$_]; 286 if ($pid == 0) {
285 print "$command\n"; 287
286 288 $command = "./build/spc_convert -s 100" . " -i ./test-files/" .
287 `$command`; 289 $sources[$_] . " -o ./output/" . $targets[$_];
288 290 print "$command\n";
291
292 `$command`;
293 exit(0);
294 }
289 } 295 }
290 296