Subversion Repositories cheapmusic

Rev

Rev 49 | Blame | Compare with Previous | Last modification | View Log | RSS feed

if [ -z "$1" ]
then
    echo "Need http filename"
    exit
fi
wget -O cjpromo.xml --http-user=5264753 --http-passwd=PzY_aU68 $1
rc=$?

if [ $rc -ne 0 ]
 then
    echo "Could not download $1"
    exit
fi

php cjpromo.php cjpromo.xml > cjpromo.csv
rc=$?

if [ $rc -ne 0 ]
 then
    echo "Could not process cjpromo.xml"
    exit
fi

#mysql cheapmusic < cjpromo.sql