Created
December 7, 2015 12:41
-
-
Save filviu/574fcc9cdc9f9821f6d1 to your computer and use it in GitHub Desktop.
Launch multiple processes in the background with separate log files and random delay
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
# seq: no of processes | |
# RANDOM %3 max. delay of 2s | |
for i in $(seq 10); do ./bin/cmd --param1 --param2 > output_$i.txt 2>&1 & sleep $(($RANDOM %3));done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment