Last active
December 14, 2015 06:19
-
-
Save jtatum/5041562 to your computer and use it in GitHub Desktop.
Shell script to start automation in a local terminal window
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
#!/bin/bash | |
# Note - you can't run this script in the local terminal. | |
# Run it via SSH or cron or something else. | |
COMMANDS="your automation script here" | |
killall python 2>/dev/null | |
killall Terminal 2>/dev/null | |
open -a Terminal | |
osascript <<EOF | |
tell application "Terminal" | |
close every window | |
do script with command "$COMMANDS" | |
end tell | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment