- Timestamp:
- Apr 20, 2009, 6:03:58 PM (15 years ago)
- Location:
- locker/bin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
locker/bin/scripts
r127 r1087 1 1 #!/bin/sh 2 2 3 choices () { 4 echo 'scripts-start Begin a Quick-Start autoinstall (wikis, blogs, etc.)' 5 echo 'signup-web Enable the web scripts service' 6 echo 'signup-cron Enable the cron scripts service' 7 echo 'signup-mail Enable the mail scripts service' 8 echo 'signup-sql Sign up for a sql.mit.edu account' 9 } 10 11 nchoices=`choices | wc -l` 12 13 echo 14 echo "Welcome to scripts.mit.edu. Which service would you like to use?" 15 echo 16 choices | sed 's/^[^ ]* //' | cat -n 17 echo 18 printf "Please enter a number 1-%d: " "$nchoices" 19 read num 20 echo 21 3 22 attach scripts 2>/dev/null 4 . /mit/scripts/bin/scripts-start 23 choice=`choices | sed -n "$num { s/ .*$//; p; }"` 24 if [ -n "$choice" ]; then 25 . "/mit/scripts/bin$scriptsdev/$choice" 26 else 27 echo "ERROR:" 28 echo "You must enter a number 1 through $nchoices." 29 exit 1 30 fi -
locker/bin/signup-cron
r660 r1087 1 1 #!/bin/sh 2 2 3 attach scripts3 attach -q scripts 4 4 . /mit/scripts/bin$scriptsdev/signup-minimal 5 5 -
locker/bin/signup-mail
r1011 r1087 1 1 #!/bin/sh 2 2 3 attach scripts3 attach -q scripts 4 4 . /mit/scripts/bin$scriptsdev/signup-minimal 5 5
Note: See TracChangeset
for help on using the changeset viewer.