| Last change
                  on this file since 2279 was
                  1219,
                  checked in by mitchb, 16 years ago | 
        
          | Add a very braindead implementation of athrun for scripts.
This version just assumes that you want to run /mit/locker/bin/program,
and does not use the fairly complex athdir tool and library that
Athena do; they would require actual work to get going on scripts,
as they end up with the wrong arch directory as built for Athena 9. | 
        
          | 
              
                  Property svn:executable set to
                  * | 
        | File size:
            479 bytes | 
      
      
        
  | Line |  | 
|---|
| 1 | #!/bin/sh | 
|---|
| 2 |  | 
|---|
| 3 | # An analog of the Athena athrun utility for scripts.mit.edu. | 
|---|
| 4 | # The Athena athrun was written by Greg Hudson. | 
|---|
| 5 | # This version was kludged by Mitchell Berger. | 
|---|
| 6 | # "athrun moira" runs moira from the moira locker. | 
|---|
| 7 | # "athrun gnu gls -l" runs gls -l from the gnu locker. | 
|---|
| 8 |  | 
|---|
| 9 | case $# in | 
|---|
| 10 | 0) | 
|---|
| 11 | echo "Usage: athrun locker [program] [args ...]" >&2 | 
|---|
| 12 | exit 1 | 
|---|
| 13 | ;; | 
|---|
| 14 | 1) | 
|---|
| 15 | exec "/mit/$1/bin/$1" | 
|---|
| 16 | ;; | 
|---|
| 17 | *) | 
|---|
| 18 | locker=$1 | 
|---|
| 19 | program=$2 | 
|---|
| 20 | shift 2; | 
|---|
| 21 | exec "/mit/$locker/bin/$program" "$@" | 
|---|
| 22 | ;; | 
|---|
| 23 | esac | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.