Originally Posted by
greenhat
Following up on my own thread. After a few emails back and forth with GoDaddy, we figured out that they were wrong in their first email and that ftp from inside out is not allowed - something about security risk (didnt make much sense, since ftp access from outside in is allowed). They offered to get a different plan that would cost about 10 times the price of what im paying now - not an option.
In case others here are in the same shoes , here's how i solved the problem:
- signed up for a free (ad based) hosting here: reallyfreehosting.com (there are other free hosts out there..
- wrote a script to create the product.xml file, download it from my site, and upload it to google
- put the script in a cron job on the free hosting site..dont forget to set it to executable.
here's the script (just replace all the variables and directories):
#!/bin/sh
USERNAME_TO="aaaaa"
PASSWORD_TO="bbbbb"
SERVER_TO="uploads.google.com"
USERNAME_FROM="xxxxx"
PASSWORD_FROM="yyyyy"
SERVER_FROM="your_domain.com"
FILE="zzzz_products.xml"
FEED_DIR="/{your_store}/feed"
#create new feed file
curl "http://{your_domain}.com/{your_store}/googlefroogle.php?feed=yes&upload=no&type=products"
sleep 10
echo
echo "file:$FILE created ... "
echo
# login to server and get product.xml file
ftp -n $SERVER_FROM <<EOF
user $USERNAME $PASSWORD_FROM
cd $FEED_DIR
get $FILE
quit
EOF
echo "ftp download from server:$SERVER_FROM file:$FILE ...done!"
# login to google server and upload the file
ftp -n $SERVER_TO <<EOF
user $USERNAME $PASSWORD_TO
put $FILE
quit
EOF
echo "ftp upload to server:$SERVER_TO file:$FILE ... done!"
--------
Bookmarks