Skip to content

Instantly share code, notes, and snippets.

@jgleonard
Last active January 4, 2022 21:24
Show Gist options
  • Save jgleonard/2360333955e6966258b1869d2dc73b6a to your computer and use it in GitHub Desktop.
Save jgleonard/2360333955e6966258b1869d2dc73b6a to your computer and use it in GitHub Desktop.
Wrapper script to ensure output during long-running command
#!/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