I'm trying to upload some files to my web site to share using a cron job 
and ftp. The cron part looks simple enough from crontab, where I need 
help is the ftp part. Here is what I have so far and the error I get. Of 
course xxx yyy and zzz have the correct info in them.

#!/bin/sh
USERNAME="xxx"
PASSWORD="yyy"
SERVER="ftp.zzz.com"
# local directory to pickup *.tar.gz file
FILE="/home/john/cron/upload"
# remote server directory to upload backup
DIR="/zzz/files/splitter/cad"
echo USER $USERNAME
echo FILE $FILE/*.*
# login to remote server
ftp -n -i $SERVER <<EOF
user $USERNAME $PASSWORD
cd $DIR
mput $FILE/*.*
quit
EOF
I get this error
john@cave:~/cron$ ./upload.sh
USER xxx
FILE /home/john/cron/upload/golang.png
/home/john/cron/upload/golang.png: No such file or directory

Thanks
JT

------------------------------------------------------------------------------
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to