title: GNU Parallel - which job failed?
body: <p>I'm running a job on several different servers (up to 25) using GNU parallel. </p>
  
  <p>The shell script which implements this currently does:</p>
  
  <pre><code>parallel --tag --nonall -S $some_list_of_servers "some_command"
  state=$?
  echo -n "RESULT: "
  if [ "$state" -eq "0" ]
  then
      echo "All jobs successful"
  else
      echo "$state jobs failed"
  fi
  return $state
  </code></pre>
  
  <p>where some_list_of_servers is an array, and install_command is, for instance, git fetch.</p>
  
  <p>What I want is LOT more information than just how many jobs failed. I want to know which command, and which server, failed.</p>
  
  <p>I've been through the man page, and google, and SO but can't find the switch(es) that I'm looking for. </p>
  
  <p>Any help gratefully appreciated.</p>
  
  <p>WeeDom</p>
  
  <p>EDIT in response to Answer 1:</p>
  
  <p>I tried that, and something odd is happening. </p>
  
  <pre><code>weedom@host1: ~/$ parallel --tag --nonall  -j8 --joblog test.log -S host1,host2 uptime 
  host2   10:41:17 up 36 days, 20:45,  1 user,  load average: 0.00, 0.00, 0.00
  host1         10:41:17 up 22:34,  3 users,  load average: 0.06, 0.11, 0.04
  weedom@host1: ~/$ cat test.log
  Seq     Host    Starttime       Runtime Send    Receive Exitval Signal  Command
  1       host1        1403689277.067  0.519999980926514       0       0       0      0       uptime
  </code></pre>
  
  <p>No matter how many hosts I add to -S, I seem to only get the last one to complete into test.log</p>
  
  <p>I've added a follow-up question here: <a href="https://stackoverflow.com/questions/24408726/gnu-parallel-joblog-only-logging-last-job">GNU Parallel - --joblog only logging last job</a></p>