Suppose I have a list of commands in file cmd_file
.
I run these commands via:
cat cmd_file | parallel -k -I {} "{}"
One of the commands fails. All of the commands use the exact same CLI tool with different inputs.
Right now, I have to run across all of the commands one at a time to find the erroring command by substituting my command list for a command builder loop (much more involved):
for ...; do
# assemble the vars for the command
echo "<command>"
<command>
done
Is there a mechanic for getting parallel to display the command that failed, or the execution order onto stderr, for example?