I have RedHat 7.3 workstation running. I want to use my W98 PC running TCPIP to FTP files off the Linux box to my W98 box. FTP works ok into the internet. But I want to simply transfer bewteen computers. Help. Thanks.
# Check for specified file
for TmpFile in `ls $FILELOC`
do
if [ $FILENAME = $TmpFile ]
then
#FTP File
ftp -i -v -t -n $FTPSERVER <<-EOF > FTPLog.txt
user $FTPUSER $FTPPASS
bin
hash
cd $FTPDIR
put $FILENAME
bye
EOF
# Move File to Archive
export ARCFILE=$FILENAME.`date '+%d%m%Y.%H%M%S'`
mv -f $FILENAME $ARCHLOC/$ARCFILE
# Email status
mail -s $ARCFILE $MAILADDR < FTPLog.txt
fi
done
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.