From owner-freebsd-questions@FreeBSD.ORG Wed Jul 27 08:08:24 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4BE071065670 for ; Wed, 27 Jul 2011 08:08:24 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0FDC78FC08 for ; Wed, 27 Jul 2011 08:08:23 +0000 (UTC) Received: by vxg33 with SMTP id 33so1290795vxg.13 for ; Wed, 27 Jul 2011 01:08:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.23.225 with SMTP id p1mr7234162vdf.134.1311754102881; Wed, 27 Jul 2011 01:08:22 -0700 (PDT) Received: by 10.220.148.10 with HTTP; Wed, 27 Jul 2011 01:08:22 -0700 (PDT) X-Originating-IP: [93.221.180.12] In-Reply-To: <4E2F1C0F.4040108@msen.com> References: <4E2F1C0F.4040108@msen.com> Date: Wed, 27 Jul 2011 10:08:22 +0200 Message-ID: From: "C. P. Ghost" To: Mark Moellering Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Subject: Re: Book recommendations (slightly OT) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jul 2011 08:08:24 -0000 On Tue, Jul 26, 2011 at 9:57 PM, Mark Moellering wrote: > I want to automate some tasks, creating directories, file editing, etc. = =A0I > was going to pick up a book on shell scripting but wanted to ask the list > if; > A) I am barking up the wrong tree and should use something else. > B) If I am headed in the right direction, what is the best book / resourc= e > to use? Most automation can be done with shell scripting, but there are situations where shell won't cut it. Then, you may want to give Expect a try (hint: combine it with netcat a.k.a. nc and other tools). If you don't like its TCL syntax, there's a port to Python in misc/py-pexpect: http://pexpect.sourceforge.net/ Good luck. > Thanks in advance > > Mark Moellering -cpghost. --=20 Cordula's Web. http://www.cordula.ws/