|
|
1.1 ! root 1: : run this script through /bin/sh ! 2: ! 3: echo '' ! 4: echo '' ! 5: echo '' ! 6: echo 'Welcome to the NYSERNet/PSI White Pages Pilot Project' ! 7: echo '' ! 8: ! 9: C=fred D=fred E= ! 10: if [ \( "x$USER" = "xxwp" -o "x$LOGNAME" = "xxwp" \) -a -x @(BINDIR)xwp ]; then ! 11: TERM="xterm" ! 12: fi ! 13: if [ "x$TERM" = "xxterm" ]; then ! 14: if [ -x @(BINDIR)xwp ]; then ! 15: D="xwp -D" ! 16: fi ! 17: ! 18: X="`who am i | sed -e 's%.*(\(.*\))%\1%'`" ! 19: if [ -l "$X" -ge 16 ]; then ! 20: X= ! 21: fi ! 22: echo 'If you want X window access, please enter your DISPLAY name,' ! 23: if [ "x$X" != "x" ]; then ! 24: if [ "x$DISPLAY" = "x" ]; then ! 25: DISPLAY="$X:0.0" ! 26: fi ! 27: echo 'otherwise, if you do not wish to use X, enter "none"' ! 28: echo '' ! 29: echo -n 'DISPLAY (default='$DISPLAY')=' ! 30: read X x ! 31: case "x$X" in ! 32: x) export DISPLAY ! 33: C="$D" ! 34: ;; ! 35: ! 36: xnone) ;; ! 37: ! 38: *) DISPLAY="$X" ! 39: export DISPLAY ! 40: C="$D" ! 41: ;; ! 42: esac ! 43: else ! 44: echo 'e.g., "192.33.4.21:0.0"' ! 45: echo '' ! 46: echo -n 'DISPLAY=' ! 47: ! 48: read X x ! 49: case "x$X" in ! 50: x|xnone) ;; ! 51: ! 52: *) DISPLAY="$X" ! 53: export DISPLAY ! 54: C="$D" ! 55: ;; ! 56: esac ! 57: fi ! 58: echo '' ! 59: fi ! 60: ! 61: if [ "$C" = "fred" ]; then ! 62: echo 'Try "help" for a list of commands' ! 63: echo ' "whois" for information on how to find people' ! 64: echo ' "manual" for detailed documentation' ! 65: echo ' "report" to send a report to the white pages manager' ! 66: echo '' ! 67: echo 'To find out about participating organizations, try' ! 68: echo ' "whois -org *"' ! 69: echo '' ! 70: echo ' accessing service, please wait...' ! 71: else ! 72: echo 'To find out about participating organizations,' ! 73: echo ' click on "US"' ! 74: fi ! 75: echo '' ! 76: ! 77: DISHDRAFT=/tmp/fred$$ export DISHDRAFT ! 78: ! 79: exec /bin/csh -ic "@(BINDIR)$C -a -l -r"
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.