Den 29. nov. 2011 06:03, skrev Michael Mol:
On Mon, Nov 28, 2011 at 11:33 PM, Pandu Poluan<pa...@poluan.info>  wrote:
Just wondering if anyone here ever use Tcl for scripting (i.e., automating
repetitive procedures) or even *gasp* serious programming.
Not me, but Tcl is one of the best-represented langauges on the site I run.


I use it for small stuff (with expect) regarding keeping my cheap consumer-grade routers/switches running. Those things usually have either a telnet or ssh interface that allows me to monitor/configure/reboot, but they are usually too ficle to be programmed in any predictable way. Muddle through a problem manually, and record the solution in an expect script to keep until next time. Over the years I have accumulated several that are stable enough to run unattended. Last couple of times that my most troublesome wifi-box got alzheimers, it got rebooted automatically. Dynamic DNS (10+ hostnames) and ADSL rebooting happens within 5 minutes of my ISP deciding to do something weird. expectk brings a semblance of sanity.

No serious programming though. Did use exmh as my main mailclient until ~9 years ago. It is still being developed, look into that if you want an example of Tcl in a largeish project.




Reply via email to