Bash script to re-run program when it finishes or crashes
2
votes
1
answer
3481
views
This is what I have so far:
until python MyApp.py; do
echo "App crashed... restarting..." >&2
sleep 1
done
This will re-run the program when it crashes, but not when the program finishes on its own.
Asked by Vic
(193 rep)
Jul 26, 2016, 01:53 PM
Last activity: Jun 29, 2025, 06:16 AM
Last activity: Jun 29, 2025, 06:16 AM