From owner-freebsd-questions@FreeBSD.ORG Sat Nov 22 07:18:00 2003 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 D7DEB16A4CE for ; Sat, 22 Nov 2003 07:18:00 -0800 (PST) Received: from p1028-ipbffx02marunouchi.tokyo.ocn.ne.jp (p1028-ipbffx02marunouchi.tokyo.ocn.ne.jp [220.111.132.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2BB4943FAF for ; Sat, 22 Nov 2003 07:17:57 -0800 (PST) (envelope-from lukek@meibin.net) Received: (qmail 2971 invoked by uid 89); 22 Nov 2003 15:17:55 -0000 Received: from unknown (HELO ?127.0.0.1?) (192.168.10.35) by 192.168.20.5 with SMTP; 22 Nov 2003 15:17:55 -0000 Date: Sun, 23 Nov 2003 00:16:25 +0900 From: Luke Kearney To: Marty Landman In-Reply-To: <6.0.0.22.0.20031122093747.065f9420@pop.face2interface.com> References: <3FBEC5C1.7040705@daleco.biz> <6.0.0.22.0.20031122093747.065f9420@pop.face2interface.com> Message-Id: <20031123001254.152D.LUKEK@meibin.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.07.01 cc: freebsd-questions@freebsd.org Subject: Re: a good way to save a keystroke? 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: Sat, 22 Nov 2003 15:18:01 -0000 On Sat, 22 Nov 2003 09:44:30 -0500 Marty Landman granted us these pearls of wisdom: > At 09:11 PM 11/21/2003, Kevin D. Kinsey, DaleCo, S.P. wrote: > > >Which shell are you using? > > C shell. Maybe I should switch to Bash? I mostly ssh in using my user acct > and then have at least one screen session where I su to root. However to > the extent that I'd like to write shell scripts that are consistent for > account that may use different shells, if that even makes sense, than maybe > backticks are the way to go. > Just as an aside to this particular thread. I am sure I read somewhere that it is usually best to write scripts for sh , ie /bin/sh as many of the others are located in /usr/something which when the file system is not stable may or may not be accessible. man sh would be your friend here and quite often shell scripts that are run from cron are written with this shell in mind. good luck LukeK