Skip to content

Instantly share code, notes, and snippets.

View jonashoechst's full-sized avatar

Jonas Höchst jonashoechst

View GitHub Profile
@jzawodn
jzawodn / wait.sh
Created November 21, 2008 15:13
how to wait on multiple background processes and check exit status in bash
#!/bin/bash
FAIL=0
echo "starting"
./sleeper 2 0 &
./sleeper 2 1 &
./sleeper 3 0 &
./sleeper 2 0 &