Search code examples
gnu-parallel

How to get GNU Parallel report every file processed?


I would like to keep track of GNU parallel in a simple log file and would like it to emit the name of each as it starts / ends (either or both are equally fine). It seems verbose is too verbose for this.


Solution

  • If you make a profile that does the logging:

    echo 'echo {} >> my.log;' > ~/.parallel/log
    

    Then you can do this:

    parallel -J log seq {} ::: 1 2 3
    

    But since the profile uses {} you need to mention {} explicitly.

    THIS DOES NOT WORK:

    parallel -J log seq ::: 1 2 3