title: Csh script wait for multiple pid
body: <p>Does the wait command work in a csh script to wait for more than 1 PID to finish?</p>
  
  <p>Where the <code>wait</code> command waits for all the PID listed to complete before moving on to the next line </p>
  
  <p>e.g. </p>
  
  <pre><code>wait $job1_pid $job2_pid $job3_pid
  nextline
  </code></pre>
  
  <p>as the documentation online that I usually see only shows the wait command with only 1 PID, although I have read of using wait for multiple PID, like here :
  <a href="http://www2.phys.canterbury.ac.nz/dept/docs/manuals/unix/DEC_4.0e_Docs/HTML/MAN/MAN1/0522____.HTM" rel="nofollow noreferrer">http://www2.phys.canterbury.ac.nz/dept/docs/manuals/unix/DEC_4.0e_Docs/HTML/MAN/MAN1/0522____.HTM</a></p>
  
  <p>which says quote "If <strong>one or more pid operands are specified</strong> that represent known process IDs,the wait utility waits until all of them have terminated"</p>