Revision 16178,
553 bytes
checked in by ghudson, 24 years ago
(diff) |
Add new program, gathrun.
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | # $Id: gathrun.sh,v 1.1 2001-05-06 15:53:38 ghudson Exp $ |
---|
3 | |
---|
4 | # gathrun - Run a program, or put up an error dialog saying that it |
---|
5 | # doesn't exist. |
---|
6 | |
---|
7 | case $# in |
---|
8 | 0) |
---|
9 | echo "Usage: gathrun locker [program] [args ...]" >&2 |
---|
10 | exit 1 |
---|
11 | ;; |
---|
12 | 1) |
---|
13 | locker=$1 |
---|
14 | program=$1 |
---|
15 | ;; |
---|
16 | *) |
---|
17 | locker=$1 |
---|
18 | program=$2 |
---|
19 | shift 2 |
---|
20 | ;; |
---|
21 | esac |
---|
22 | |
---|
23 | if attachandrun --check "$locker" "$program" "$@"; then |
---|
24 | exec /bin/athena/attachandrun "$locker" "$program" "$program" "$@" |
---|
25 | else |
---|
26 | gdialog --msgbox \ |
---|
27 | "$program is not available in the $locker locker on this platform." 0 100 |
---|
28 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.