You are not logged in.
Hello,
I was trying to display my residual sip credit (voipcheap) in conky using a bash script. However, the original script that I found is written for a different purpose and I am having some difficult to modify it.
Can I have some help?
#!/bin/bash
CRED='userid=USERNAME&password=PASSWORD'
FILTER='euro'
URL='https://www.messagenet.it/utente/'
SERVICE='messagenet'
/usr/bin/wget -q --no-check-certificate --keep-session-cookies --save-cookies /tmp/vs_cookies.txt --post-data="$CRED" -O /tmp/vs_credit "$URL"
/usr/bin/wget -q --no-check-certificate --load-cookies /tmp/vs_cookies.txt --post-data='part=menu&justloggedin=true' -O /tmp/vs_credit "$URL"
credit=$(grep -i $FILTER /tmp/vs_credit)
echo $credit >/tmp/credit_$SERViCE.txt
P.S.
it depends on wget and curl (http://www.voipandhack.it/)
Thanks
Salvo
Offline
Offline