My host updated my version of FreeBSD, and now one of my scripts is broken. The script simply uploads the data feed to Google for its trading service.
script (which worked before the update):
ftp ftp://myusername: mypassword@uploads.google.com /<<END_SCRIPT ascii put /usr/www/users/myname/feeds/mymerchantfile.txt mymerchantfile.txt exit END_SCRIPT
Now the script says "unknown host". The same script runs on OSX.
I tried to remove "ftp: //". - No effect. I can log in from the command line if I enter the username and password manually.
I searched for other solutions and also tried the following:
HOST='uploads.google.com' USER='myusername' PASSWD='mypassword' ftp -dni <<END_SCRIPT open $HOST quote USER $USER quote PASS $PASS ascii put /usr/www/users/myname/feeds/mymerchantfile.txt mymerchantfile.txt END_SCRIPT
and
HOST='uploads.google.com' USER='myusername' PASSWD='mypassword' ftp -dni <<END_SCRIPT open $HOST user $USER $PASS ascii put /usr/www/users/myname/feeds/mymerchantfile.txt mymerchantfile.txt END_SCRIPT
Nothing I can find on the Internet seems to do the trick. Does anyone have any other ideas? I do not want to use the .netrc file as it is being executed by cron under another user.
source share