Hi I found that Anoop's script is too slow to log in to Asianet. Following script will log in faster (but it requires a custom minor change) and does not rely on any service. It used to work when I was using Asianet in Trivandrum.
#!/bin/bash username=USERNAME password=PASSWORD user_agent="Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5" ping_interval=290 #Change the following line to your usual Asianet Login Page asianet_conn_url="https://mwcp-tvm-04.adlkerala.com:8001/" function disconnect { echo "Disconnecting from $asianet_conn_url" curl --silent -F "logout_id=$username" -F "logout=Logout" -A "$user_agent" $asianet_conn_url>/dev/null exit } trap 'disconnect' SIGHUP SIGINT SIGTERM echo "Connecting to $asianet_conn_url" curl --silent -F "auth_user=$username" -F "auth_pass=$password" -F "accept=Login" -A "$user_agent" $asianet_conn_url>/dev/null while true; do echo "Pinging $asianet_conn_url" curl --silent -F "alive=y" -F "un=$username" -A "$user_agent" $asianet_conn_url sleep $ping_interval done On Wed, Nov 23, 2011 at 6:31 AM, Anoop John <[email protected]> wrote: > There is a small update regarding this auto login script. If anybody > is using this script they will have to make some small corrections to > make the script working. You can get the latest script from > > https://github.com/anoopjohn/Asianet-Auto-Login-Script > > The older version will no longer work as the script was polling for a > file from zyxware.com. The issue came into my attention when I saw > that somebody was abusing the script by checking connection status > every second instead of the 300 second set by default. This was found > to be rather heavy on the server and the service is no longer active > on zyxware.com server. Sorry about that. I will try to update the > script to some other mechanism that does not require accessing a URL. > I no longer use Asianet so this is not an immediate priority for me. > So those who are using this will have to figure out alternative ways > to check your connection status until the script is corrected. > > Cheers > Anoop > > |-- > | Zyxware Technologies > | http://www.zyxware.com > |-- > | Be the change you wish to see in the world, M. K. Gandhi > |-- > > -- > "Freedom is the only law". > "Freedom Unplugged" > http://www.ilug-tvm.org > > You received this message because you are subscribed to the Google > Groups "ilug-tvm" group. > To control your subscription visit > http://groups.google.co.in/group/ilug-tvm/subscribe > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > > > > For details visit the google group page: > http://groups.google.com/group/ilug-tvm?hl=en > -- DISCLAIMER: All opinions mentioned here are my own and has no relations with that of my employer. All information is based on publically available data and information -- "Freedom is the only law". "Freedom Unplugged" http://www.ilug-tvm.org You received this message because you are subscribed to the Google Groups "ilug-tvm" group. To control your subscription visit http://groups.google.co.in/group/ilug-tvm/subscribe To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For details visit the google group page: http://groups.google.com/group/ilug-tvm?hl=en
