#!/bin/sh # Copyright (C) 1995 Jeffrey Chilton # # Permission is granted to anyone to make or distribute copies of # this program, in any medium, provided that the copyright notice # and permission notice are preserved, and that the distributor # grants the recipient permission for further redistribution as # permitted by this notice. # # Author's E-mail address: jwc@chilton.com STAGE=0 sigterm() { echo "$0: SIGTERM at stage $STAGE" >>/logs/scripts exit 1 } trap sigterm 15 CMD="" LINE=`(/usr/sbin/nslookup $REMOTE_ADDR |grep "name = ") 2> /dev/null` if [ "$LINE" = "" ] then LOG_WHO="[$REMOTE_ADDR]" else LOG_WHO=`echo $LINE |sed -e "s/.* name = //"` fi if [ $WWW_frequency ] then CMD=`printf "$WWW_frequency\n" |/usr/local/bin/encode_freq` CMD="$CMD\n" fi if [ $CMD = "\n" ] then echo Content-type: text/html echo cat << E_O_F
The frequency you requested contains non-numeric characters or is outside the range the radio is capable of receiving. You must enter a frequency between 110KHz and 30MHz. (Don't enter the letters "MHz" or "KHz"; I'll figure it out from the value of the number.)
Some examples of valid entries are:
Note that the FM broadcast band - 88 to 108 MHz - is well above the range of frequencies this radio receives. Sorry, until I put a VHF radio on line, you can't get "Z-101" here.
Now go back to the Shortwave Radio page and click on the radio speaker [live audio] to hear what I'm hearing here. Note: If you use your browser's back button to return to the Shortwave Radio page, you may need to reload it to see this change in the Current Receiver Tuning section.
E_O_F if [ $RESPONSE ] then cat << E_O_FE_O_F env |grep "WWW_" |sort echo "" echo "Command = $CMD" echo "Response = $RESPONSE" cat << E_O_FE_O_F fi cat << E_O_F