From owner-freebsd-questions@FreeBSD.ORG Tue Feb 10 08:46:07 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 08BDF16A4CE for ; Tue, 10 Feb 2004 08:46:07 -0800 (PST) Received: from rdsnet.ro (smtp.rdsnet.ro [62.231.74.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 21C1443D1D for ; Tue, 10 Feb 2004 08:46:06 -0800 (PST) (envelope-from itetcu@apropo.ro) Received: (qmail 11376 invoked from network); 10 Feb 2004 16:46:04 -0000 Received: from unknown (HELO it.buh.cameradicommercio.ro) (81.196.25.19) by mail.rdsnet.ro with SMTP; 10 Feb 2004 16:46:03 -0000 Received: from it.buh.cameradicommercio.ro (localhost.buh.cameradicommercio.ro [127.0.0.1]) by it.buh.cameradicommercio.ro (Postfix) with SMTP id 362D421; Tue, 10 Feb 2004 18:47:46 +0200 (EET) Date: Tue, 10 Feb 2004 18:47:45 +0200 From: Ion-Mihai Tetcu To: Jonathon McKitrick Message-Id: <20040210184745.1a22a542@it.buh.cameradicommercio.ro> In-Reply-To: <20040210154416.GB33394@dogma.freebsd-uk.eu.org> References: <20040210154416.GB33394@dogma.freebsd-uk.eu.org> X-Mailer: Sylpheed version 0.9.8claws (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: Choosing between sh and perl for system scripts X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Feb 2004 16:46:07 -0000 On Tue, 10 Feb 2004 15:44:16 +0000 Jonathon McKitrick wrote: > > Now that I have a desktop workstation and network, I'm trying to learn the > true admin side of BSD, such as the periodic tasks, and how to automate > things. I see perl all over the system, and I know it's powerful and easy > to use. What might help me decide which tool would be best for the scripts > I want to write? Your own experience ;) sh is more portable, you will find it on almost every *nix; you will have to learn about it to understand various scripts from the base system like (/usr/local)etc/rc.d/*; make(1) has a very similar syntax. perl on the other hand is more powerful and you have a lot of modules (CPAN). You will end up knowing both, probably. -- IOnut Unregistered ;) FreeBSD user