#!/bin/csh -f # ------------------------------------------------------------------------- # Shell script to check SEPTA train schedules. # ------------------------------------------------------------------------- # Revision History: # $Log$ # ------------------------------------------------------------------------- if ("$1" == "-h" || "$1" == "--help") then echo "Usage: $0:t [option]" echo "Where option can be any of the following to decide whether to show" echo "the R5 weekday, Saturday or Sunday schedule:" echo " m mo mon monday t tu tue tues tuesday w we wed weds wednesday" echo " th thu thurs thursday f fri friday wk week weekday " echo " s sa sat saturday" echo " su sun sunday" echo "Example: $0:t Shows main SEPTA page" echo "Example: $0:t m Shows weekday R5 schedule" echo "Example: $0:t sat Shows Saturday R5 schedule" echo "Example: $0:t sun Shows Sunday R5 schedule" echo "Example: $0:t -h Shows this help info" endif if ("$1" == "") open http://septa.org/ if ("$1" == "m") open http://septa.org/service/sched/r5s_wk.html if ("$1" == "mo") open http://septa.org/service/sched/r5s_wk.html if ("$1" == "mon") open http://septa.org/service/sched/r5s_wk.html if ("$1" == "monday") open http://septa.org/service/sched/r5s_wk.html if ("$1" == "t") open http://septa.org/service/sched/r5s_wk.html if ("$1" == "tu") open http://septa.org/service/sched/r5s_wk.html if ("$1" == "tue") open http://septa.org/service/sched/r5s_wk.html if ("$1" == "tues") open http://septa.org/service/sched/r5s_wk.html if ("$1" == "tuesday") open http://septa.org/service/sched/r5s_wk.html if ("$1" == "w") open http://septa.org/service/sched/r5s_wk.html if ("$1" == "we") open http://septa.org/service/sched/r5s_wk.html if ("$1" == "wed") open http://septa.org/service/sched/r5s_wk.html if ("$1" == "weds") open http://septa.org/service/sched/r5s_wk.html if ("$1" == "wednesday") open http://septa.org/service/sched/r5s_wk.html if ("$1" == "th") open http://septa.org/service/sched/r5s_wk.html if ("$1" == "thu") open http://septa.org/service/sched/r5s_wk.html if ("$1" == "thurs") open http://septa.org/service/sched/r5s_wk.html if ("$1" == "thursday") open http://septa.org/service/sched/r5s_wk.html if ("$1" == "f") open http://septa.org/service/sched/r5s_wk.html if ("$1" == "fri") open http://septa.org/service/sched/r5s_wk.html if ("$1" == "friday") open http://septa.org/service/sched/r5s_wk.html if ("$1" == "wk") open http://septa.org/service/sched/r5s_wk.html if ("$1" == "week") open http://septa.org/service/sched/r5s_wk.html if ("$1" == "weekday") open http://septa.org/service/sched/r5s_wk.html if( "$1" == "s") open http://septa.org/service/sched/r5s_sat.html if ("$1" == "sa") open http://septa.org/service/sched/r5s_sat.html if ("$1" == "sat") open http://septa.org/service/sched/r5s_sat.html if ("$1" == "saturday") open http://septa.org/service/sched/r5s_sat.html if( "$1" == "su") open http://septa.org/service/sched/r5s_sun.html if ("$1" == "sun") open http://septa.org/service/sched/r5s_sun.html if ("$1" == "sunday") open http://septa.org/service/sched/r5s_sun.html