You are not logged in.

#1 2011-06-30 08:38:24

JimmySJ84
Member
Registered: 2010-07-23
Posts: 12

[Request] display voipcheap credit in conky

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

#2 2011-06-30 19:55:38

JimmySJ84
Member
Registered: 2010-07-23
Posts: 12

Re: [Request] display voipcheap credit in conky

Offline

Board footer

Powered by FluxBB