Friday, January 9, 2009

How Do I Clean My White Leather Couch

Script Mini MIDI Keyboard 2Mb Linux

Ono has released a flat rate consumption limit of 1 GB / month. With calls cost around 30 €, and additional 500MB stretch out about 5 €.

A relative of mine has hired and yes, the contract is justified as just using the service. However I am interested in controlling consumption and so I decided to create this script regularly to keep logs of consumption.

should work in linux and windows (with cygwin ).

 # / bin / bash USER = 
"12345678A"
PASS = "potato"
LOG = "/ root / ono.log"
COOKIES = "/ root / onocookies"

# Send login
wget - -no-check-certificate-q -O/dev/null - keep-session-cookies - save-cookies = "$ COOKIES" - post-data = "__EVENTARGUMENT __EVENTTARGET = & = & = & RightMenu1_NavBar1_SelectedItem RightMenu1_NavBar1_ExpandedList = & user1% 3ATipo = p & USER1% 3AInstalacionCDSVerificada = false & USER1% 3Alogin = $ USER & USER1% 3Apassword = $ PASS & x = 0 & y = 0 " https: / / servicios.ono.es / pasaporteono / login.aspx

# Complete the login
wget - no-check-certificate-q -O/dev/null - keep-session-cookies - load-cookies = "$ COOKIES" https: / / servicios.ono.es / pasaporteono / Cuentas.aspx


{# Display the date
echo-n "` date `" # Show

website statistics and consumer filter parameter
echo-n "`
wget - no-check-certificate-q-O "- keep-session-cookies - load-cookies =" $ COOKIES "https: / / servicios.ono.es / Pasaporteono / portadaMisServicios . aspx

# line break echo <]*\)<.*$--'

}>> $ LOG