Last active
January 29, 2024 09:33
-
-
Save winstxnhdw/44e6489be1734f144b860fa23142645f to your computer and use it in GitHub Desktop.
A simple POSIX-compatible shell script to indefinitely execute short-lived functions with GNU Parallel and yes.
This file contains 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() { | |
echo "Hello world!" | |
} | |
export -f func | |
yes '' | parallel -j 10 --delay 0auto func |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment