Saturday, January 12, 2013
Always run a script in the terminal
Use this code to always run your script in the terminal. Change gnome-terminal to your desired shell.
#!/bin/bash
tty -s; if [ $? -ne 0 ]; then gnome-terminal -e "$0"; exit; fi
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment