1 |
Den 29. nov. 2011 06:03, skrev Michael Mol: |
2 |
> On Mon, Nov 28, 2011 at 11:33 PM, Pandu Poluan<pandu@××××××.info> wrote: |
3 |
>> Just wondering if anyone here ever use Tcl for scripting (i.e., automating |
4 |
>> repetitive procedures) or even *gasp* serious programming. |
5 |
> Not me, but Tcl is one of the best-represented langauges on the site I run. |
6 |
> |
7 |
|
8 |
I use it for small stuff (with expect) regarding keeping my cheap |
9 |
consumer-grade routers/switches running. Those things usually have |
10 |
either a telnet or ssh interface that allows me to |
11 |
monitor/configure/reboot, but they are usually too ficle to be |
12 |
programmed in any predictable way. Muddle through a problem manually, |
13 |
and record the solution in an expect script to keep until next time. |
14 |
Over the years I have accumulated several that are stable enough to run |
15 |
unattended. Last couple of times that my most troublesome wifi-box got |
16 |
alzheimers, it got rebooted automatically. Dynamic DNS (10+ hostnames) |
17 |
and ADSL rebooting happens within 5 minutes of my ISP deciding to do |
18 |
something weird. expectk brings a semblance of sanity. |
19 |
|
20 |
No serious programming though. Did use exmh as my main mailclient until |
21 |
~9 years ago. It is still being developed, look into that if you want an |
22 |
example of Tcl in a largeish project. |