Skip to content

Instantly share code, notes, and snippets.

@a904guy
Created May 10, 2025 21:54
Show Gist options
  • Save a904guy/13ab2908d1ad0d2a2740ff3810496dfc to your computer and use it in GitHub Desktop.
Save a904guy/13ab2908d1ad0d2a2740ff3810496dfc to your computer and use it in GitHub Desktop.
Always run command, restarts program after exit.
#!/bin/bash
while true
do
$@
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment