Last active
January 4, 2022 21:24
-
-
Save jgleonard/2360333955e6966258b1869d2dc73b6a to your computer and use it in GitHub Desktop.
Wrapper script to ensure output during long-running command
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
#!/bin/bash | |
while true; do /bin/echo -n .; sleep 30; done & | |
eval $* | |
STATUS=$? | |
kill $! | |
exit $STATUS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment