return to first page linux journal archive
keywordscontents

Listing 4. Upload Script

#!/bin/sh
#
# doup -- DO UPload

# This is just to tell me that things are working right.
echo ####
id
echo ####

# More reassurance
echo uploading latest wx
date

# Go to where the HTML and GIF files are to live
#   on the _local_ machine
cd $HOME/WWW

# Run ws.pl and plotdays.pl
$HOME/bin/ws.pl > $HOME/WWW/wscurrent.html
$HOME/bin/plotdays.pl 6

# Do the actual ftp;
#  rely on $HOME/.netrc to do the real work
ftp ftp.frii.net

date
echo latest wx updated