# cat check_order_status.sh
#!/bin/bash
email="your@email.org"
username="your.login@email.net"
password="_secret-pass_"
echo "Getting login page..."
curl -s -c cookie.txt https://shop.jolla.com/customer/account/login/ > /dev/null
echo "Sending POST data..."
curl -s -b cookie.txt -c cookie.txt -d "login[username]=$username" -d "login[password]=$password" -d "send=" https://shop.jolla.com/customer/account/loginPost/ > /dev/null
echo "Getting orders list..."
orders=`curl -s -b cookie.txt https://shop.jolla.com/sales/order/history/`
echo "Filtering status..."
order_status=`echo $orders | sed -e 's/.*<td><em>//g' -e 's/<\/em>.*$//g'`
if [ ! -f status.txt ]; then
echo "unknown" > status.txt
fi
if [ `cat status.txt` == $order_status ]; then
echo "Status of your order is still $order_status, nothing to do but wait."
else
echo "Wohoo, your order status has just changed do $order_status, sending e-mail notification!"
echo "Time to celebrate, after endless waiting your Jolla order status just changed to $order_status!" | mail -s "Your Jolla order status changed to $order_status" $email
echo $order_status > status.txt
fi
echo "Done."

#!/bin/bash
email="your@email.org"
username="your.login@email.net"
password="_secret-pass_"
curl -s -c cookie.txt https://shop.jolla.com/customer/account/login/ > /dev/null
curl -s -b cookie.txt -c cookie.txt -d "login[username]=$username" -d "login[password]=$password" -d "send=" https://shop.jolla.com/customer/account/loginPost/ > /dev/null
orders=`curl -s -b cookie.txt https://shop.jolla.com/sales/order/history/`
order_status=`echo $orders | sed -e 's/.*<td><em>//g' -e 's/<\/em>.*$//g'`
if [ ! -f status.txt ]; then
echo "unknown" > status.txt
fi
if [ `cat status.txt` == $order_status ]; then
echo "Jolla :( $order_status."
else
echo "Jolla :) $order_status!"
fi

| The Following 2 Users Say Thank You to SaiKo For This Useful Post: | ||
| The Following User Says Thank You to TheBootroo For This Useful Post: | ||
#!/bin/bash
email="your@email.org"
username="your.login@email.net"
password="_secret-pass_"
curl -s -c cookie.txt https://shop.jolla.com/customer/account/login/ > /dev/null
curl -s -b cookie.txt -c cookie.txt -d "login[username]=$username" -d "login[password]=$password" -d "send=" https://shop.jolla.com/customer/account/loginPost/ > /dev/null
orders=`curl -s -b cookie.txt https://shop.jolla.com/sales/order/history/`
order_status=`echo $orders | sed -e 's/.*<td><em>//g' -e 's/<\/em>.*$//g'`
if [ ! -f status.txt ]; then
echo "unknown" > status.txt
fi
if [ `cat status.txt` == $order_status ]; then
echo "Jolla :( $order_status."
else
echo "Jolla :) $order_status!"
fi
#!/bin/bash email="your@email.org" username="your.login@email.net" password="_secret-pass_" curl -s -c cookie.txt https://shop.jolla.com/customer/account/login/ > /dev/null curl -s -b cookie.txt -c cookie.txt -d "login[username]=$username" -d "login[password]=$password" -d "send=" https:/ orders=`curl -s -b cookie.txt https://shop.jolla.com/sales/order/history/` order_status=`echo $orders | sed -e 's/.*<td><em>//g' -e 's/<\/em>.*$//g'` echo $order_status

#!/bin/bash email="your@email.org" username="your.login@email.net" password="_secret-pass_" curl -s -c cookie.txt https://shop.jolla.com/customer/account/login/ > /dev/null curl -s -b cookie.txt -c cookie.txt -d "login[username]=$username" -d "login[password]=$password" -d "send=" https:/ orders=`curl -s -b cookie.txt https://shop.jolla.com/sales/order/history/` order_status=`echo $orders | sed -e 's/.*<td><em>//g' -e 's/<\/em>.*$//g'` echo $order_status



