6

Every day I have to update a bunch of repositories and also execute in some of them another command (from CARTON, Perl module dependency manager). I use always a loop to do that but I want do it parallely with GNU parallel if it is possible but I don't understand so well its tutorial.

The point more similar I've read that can help me is called "Running the same commands on all hosts" so I got into the directory with all repos and I tried to execute: parallel --onall carton but I don't know if it works or not. Anyone can help me?

Noob_Number_1
  • 725
  • 5
  • 20

1 Answers1

7
parallel 'cd {} && git pull' ::: *
parallel 'cd {} && carbon' ::: *
Ole Tange
  • 31,768
  • 5
  • 86
  • 104
  • 1
    Thanks, it worked fine. Also, thanks to this [document](http://wiki.scinethpc.ca/wiki/images/7/7b/Tech-talk-gnu-parallel.pdf) I could understood better the syntax. – Noob_Number_1 Oct 16 '14 at 08:34