Created
August 30, 2016 03:20
-
-
Save Kairi/8aaa90b7fb58c13538f5d478dd416f5d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| func do_something { | |
| ; | |
| } | |
| dir=`mktemp -d` | |
| while [ ]; do | |
| { do_something >/dev/null 2>&1; echo $? >> "$dir/$BASHPID"; } & | |
| done | |
| wait |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
do something parallely in bash.