#!/bin/sh -u # DAT2333 - Fall 2000 - Unix Lab 5 - Script A (first try) # This is Ian's wakeup script. It doesn't quite fit the specifications # given, but it's a good first attempt. # It prompts you for a name, then sends a wakeup message to that person. # -IAN! idallen@ncf.ca # This was a debug statement I used to make sure my script worked. # echo "Hello $USER" # We loop until the user types one of the many "quit" keywords: # leave=no while [ "$leave" = "no" ] do # Get some input and echo it back to the user. # echo "Let's enter some input:" read input echo "You entered: $input" # Process the input and send the banner. # case "$input" in me) banner Wakie Wakie! | write $USER ;; r|ryan) banner Wake Up! | write abcd0025 ;; a|alex) banner Yooo Hoooo! | write abcd0110 ;; s|seb) banner Think Fast! | write abcd0030 ;; q|quit|x|exit|bye|leave|aurevoir|dosvedanja) leave=yes ;; esac done echo "Goodbye $USER"