|
Okay, here is the script that I am using to download the price files on my linux servers and it all seems to be working well. /
:
command./
/LOGIN=myraplogin
PASSWD=myrappasswd
[ "$LOGIN" -a "$PASSWD" ] || {
echo -n " Enter Rapnet login: "
read LOGIN
echo -n "Enter Rapnet password: "
read PASSWD
}
umask 000
error() {
echo -e "\007$*"
echo "Press Enter to continue"
read scrap
exit
}
wget --post-data="username=$LOGIN&password=$PASSWD" -O /tmp/round.csv "https://technet.rapaport.com/HTTP/Prices/CSV2_Round.aspx"
wget --post-data="username=$LOGIN&password=$PASSWD" -O /tmp/pear.csv "https://technet.rapaport.com/HTTP/Prices/CSV2_Pear.aspx"/
Special thanks to Laura Tyrrell for providing this code sample.
|
|