mainScript

# Joins the three scripts together
# --egs

# This puts the date at the top of any logfile produced...
date
echo _______________________________________
echo

# This is the script path...
#PERLPATH=~/bin/perl/perl
PERLPATH=~/public_html/ctrip/Itinerary/perl

# Save the current working directory so we can move back later...
SAVEDCWD=$CWD

# Change to the script path...
cd $PERLPATH

echo mainScript:::::Getting mail/ctreports to newSpool...
./spoolFTP
echo mainScript:::::Converting spool to text files...
./spool2txt
echo mainScript:::::Formatting text files into HTML...
./txt2INDEX

echo mainScript:::::Getting local mailspool /var/spool/mail/egs21...
cp /var/spool/mail/egs21 egs21Spool
echo mainScript:::::Tidying local mailspool /var/spool/mail/egs21...
./localSpoolTidy
# chmod 664 ../HTMLs/localSpool.html
rm egs21Spool

echo mainScript:::::Converting newSpool/crontab.mine/counterSpool to HTML...
./files2HTML newSpool crontab.mine counterSpool

echo mainScript:::::Adding wordcount to itin_index.html
./words | cat >>../HTMLs/itin_index.html

# Return back to the original directory...
cd $SAVEDCWD

echo _______________________________________