Last active
October 1, 2016 06:32
-
-
Save hex2010/11f784eb6007db98eb4024e04322c075 to your computer and use it in GitHub Desktop.
Auto relaunch specific application when it crash.(MacOS)
This file contains hidden or 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
# run command "crontab -e" to edit crontab | |
# require pidof utils install in /usr/local/bin | |
* * * * * bash -c "[ -z \"`/usr/local/bin/pidof Spectacle`'\" ] && open -a Spectacle" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Spectacle.app crash randomly on my MacBook, so...
better solution see https://gist.github.com/hex2010/5859c0ec2ec02c66000641836ba64dc7