SHARE
TWEET

Untitled

a guest Jul 18th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Under bash 4.3
  2.  
  3. # Run five concurrent processes
  4. for i in {1..5}; do
  5.     ( longprocess ) &
  6. done
  7.  
  8. wait -n
  9. kill $(jobs -p)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top