Posted 2024-04-17Updated 2025-01-14a few seconds read (About 19 words)用bash讓程式壞掉的時候自動重啟1234until myserver; do echo "Server 'myserver' crashed with exit code $?. Respawning.." >&2 sleep 1done 參考:https://stackoverflow.com/a/697064/22299707 用bash讓程式壞掉的時候自動重啟https://jenhaoyang.github.io/uncategorized/7d8cdcb8d8e8/AuthorStevenPosted on2024-04-17Updated on2025-01-14Licensed under