Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jul 2011 10:08:22 +0200
From:      "C. P. Ghost" <cpghost@cordula.ws>
To:        Mark Moellering <mark@msen.com>
Cc:        FreeBSD <freebsd-questions@freebsd.org>
Subject:   Re: Book recommendations (slightly OT)
Message-ID:  <CADGWnjXLRUgnKnzm=So8f4HGEXrCo6gAY=hkP%2BL%2BTy0wkxeJ=g@mail.gmail.com>
In-Reply-To: <4E2F1C0F.4040108@msen.com>
References:  <4E2F1C0F.4040108@msen.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jul 26, 2011 at 9:57 PM, Mark Moellering <mark@msen.com> 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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADGWnjXLRUgnKnzm=So8f4HGEXrCo6gAY=hkP%2BL%2BTy0wkxeJ=g>