to_proc for evdo auto dialing
I was reading John Hume’s to_proc blog entry. Much like he said I hadn’t seen the extension and immediately liked it’s readability.
On my ubuntu machine I use scripts to dial into verizon evdo. Lately I haven’t been connecting as reliably as I had been and I was spending a lot of time dialing, looking at the system log.
Interested in trying out the extension and also more interested in setting up an autodialer I started working on an intelligent verizon pppd script. It’s not done yet (I’ll post more when it is fully flushed) but I did use the to_proc.
def call_evdo
IO.popen("pppd call 1xevdo")
sleep 10
end
10.times &:call_evdo
I like the readability thanks to the to_proc extension. Right now I am working on monitoring /var/system/log for the IP address / error and redialing / binding the default gateway. I’ll keep this blog updated with progress and eventually an autodialer script.