Revision 6,
1019 bytes
checked in by ajaworski, 13 years ago
(diff) |
Added scripts from tile machine
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[6] | 1 | #!/bin/bash |
---|
| 2 | while getopts "hwa" optname |
---|
| 3 | do |
---|
| 4 | case "$optname" in |
---|
| 5 | "h") |
---|
| 6 | HOST=1 |
---|
| 7 | ;; |
---|
| 8 | "w") |
---|
| 9 | WALL=1 |
---|
| 10 | ;; |
---|
| 11 | "a") |
---|
| 12 | ALL=1 |
---|
| 13 | ;; |
---|
| 14 | "?") |
---|
| 15 | echo "Unrecognized option $OPTARG" |
---|
| 16 | exit |
---|
| 17 | ;; |
---|
| 18 | ":") |
---|
| 19 | echo "No argument value for option $OPTARG" |
---|
| 20 | exit |
---|
| 21 | ;; |
---|
| 22 | esac |
---|
| 23 | done |
---|
| 24 | |
---|
| 25 | if [ "$WALL" != "1" -a "$HOST" != "1" -a "$ALL" != "1" ]; then |
---|
| 26 | echo "Usage: connect_to_wall [-h] [-w] [-a]. One option must be specified." |
---|
| 27 | echo -e "\t-h\trun on host" |
---|
| 28 | echo -e "\t-w\trun on wall" |
---|
| 29 | echo -e "\t-a\trun on host and wall" |
---|
| 30 | exit |
---|
| 31 | fi |
---|
| 32 | |
---|
| 33 | if [ "$WALL" == "1" -o "$ALL" == "1" ]; then |
---|
| 34 | gnome-terminal -t "Left Tile [192.168.41.10]" --geometry 117x24+0+0 -x ssh -t SAGE-tile0 "cd /etc/X11; bash" & |
---|
| 35 | gnome-terminal -t "Right Tile [192.168.41.11]" --geometry 117x24+960+0 -x ssh -t SAGE-tile1 "cd /etc/X11; bash" & |
---|
| 36 | fi |
---|
| 37 | |
---|
| 38 | if [ "$HOST" == "1" -o "$ALL" == "1" ]; then |
---|
| 39 | gnome-terminal -t "Access machine [192.168.41.1]" --geometry 235x38+0+459 --working-directory /usr/local/sage/sageConfig & |
---|
| 40 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.