#! /bin/csh -f ## Script to take my daily weekday email of news from the bbc, ## and convert it to an .html file. ## This script is called "bbcextract"; and is normally called from "fetch". ## It has 4 mostly implicit parameters. set indir = ~/mail/IN set inmailbox = bbcnewsdaily set outnamepat = 'newsXXYYY.html' set index = 1 # 2 means actually -2 i.e. 2nd to last email in the inmailbox # May be passed as a param. to this script. if ("$1" != '') set index = "$1" #cd $indir #echo "Starting bbcextract" #set echo ~/bin/bbcextract.perl "$indir" "$outnamepat" "$index" < $indir/$inmailbox exit Now call bbcextract.perl "$indir" "$newsXXYYY.html" "$index" < $inmailbox Pass to it all 4 params; or rather params 1,3,4