Hi Jerry,

Thanks that worked!

JT

On 11/6/2015 3:31 PM, Jerry Scharf wrote:
> John,
>
> This is dusty past stuff, but I don't think mput likes a path. Try the
> following ftp commands instead:
> lcd /home/john/cron/upload
> mput *.*
>
> jerry
>
> On Fri, Nov 6, 2015 at 12:59 PM, John Thornton <j...@gnipsel.com> wrote:
>
>> 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
>>
>
>


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

Reply via email to