From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RVJtv-0001lP-5c for garchives@archives.gentoo.org; Tue, 29 Nov 2011 09:22:55 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 140AD21C06B; Tue, 29 Nov 2011 09:22:39 +0000 (UTC) Received: from thalia-smout.broadpark.no (thalia-smout.broadpark.no [80.202.8.21]) by pigeon.gentoo.org (Postfix) with ESMTP id BBC6321C025 for ; Tue, 29 Nov 2011 09:21:24 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed Received: from ignis-smin.broadpark.no ([80.202.8.11]) by thalia-smout.broadpark.no (Sun Java(tm) System Messaging Server 7u3-15.01 64bit (built Feb 12 2010)) with ESMTP id <0LVF00C370NL0WC0@thalia-smout.broadpark.no> for gentoo-user@lists.gentoo.org; Tue, 29 Nov 2011 10:21:21 +0100 (CET) Received: from alstadheim.priv.no ([84.49.125.35]) by ignis-smin.broadpark.no (Sun Java(tm) System Messaging Server 7u3-15.01 64bit (built Feb 12 2010)) with ESMTPSA id <0LVF00J460NL5E20@ignis-smin.broadpark.no> for gentoo-user@lists.gentoo.org; Tue, 29 Nov 2011 10:21:21 +0100 (CET) Received: from [192.168.2.145] (sorgen.alstadheim.priv.no [192.168.2.145]) (Authenticated sender: hakon) by submission.alstadheim.priv.no (Postfix) with ESMTPSA id C44154E30 for ; Tue, 29 Nov 2011 10:21:20 +0100 (CET) Message-id: <4ED4A410.3050001@alstadheim.priv.no> Date: Tue, 29 Nov 2011 10:21:20 +0100 From: =?UTF-8?B?SMOla29uIEFsc3RhZGhlaW0=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.20) Gecko/20110826 Icedove/3.1.12 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Tcl in your system... References: In-reply-to: X-Archives-Salt: 60de2cc5-00cb-4348-a38f-20b0c5a38227 X-Archives-Hash: 89f39f69afb81a10d3d723aab121746b Den 29. nov. 2011 06:03, skrev Michael Mol: > On Mon, Nov 28, 2011 at 11:33 PM, Pandu Poluan 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.