From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 32311 invoked from network); 27 Dec 2021 03:43:32 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 27 Dec 2021 03:43:32 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id DB34E9CF2D; Mon, 27 Dec 2021 13:43:31 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 580BC9CE84; Mon, 27 Dec 2021 13:43:25 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id B49089CE84; Mon, 27 Dec 2021 13:43:23 +1000 (AEST) Received: from lax.lemis.com (www.lemis.com [45.32.70.18]) by minnie.tuhs.org (Postfix) with ESMTP id F10D79CE58 for ; Mon, 27 Dec 2021 13:43:22 +1000 (AEST) Received: from eureka.lemis.com (121-200-11-253.79c80b.mel.nbn.aussiebb.net [121.200.11.253]) by lax.lemis.com (Postfix) with ESMTP id 74A34280DD; Mon, 27 Dec 2021 03:43:22 +0000 (UTC) Received: by eureka.lemis.com (Postfix, from userid 1004) id C18742635BF; Mon, 27 Dec 2021 14:43:21 +1100 (AEDT) Date: Mon, 27 Dec 2021 14:43:21 +1100 From: Greg 'groggy' Lehey To: Rudi Blom Message-ID: <20211227034321.GH83649@eureka.lemis.com> References: <20211225231941.GB83649@eureka.lemis.com> <20211225234337.cWiBV%steffen@sdaoden.eu> MIME-Version: 1.0 In-Reply-To: Organization: LEMIS, 29 Stones Road, Dereel, VIC, Australia Phone: +61-3-5309-0418 Mobile: +61-490-494-038. Use only as instructed. WWW-Home-Page: http://www.lemis.com/grog X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 User-Agent: Mutt/1.6.1 (2016-04-27) Subject: Re: [COFF] What is your prompt? X-BeenThere: coff@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Computer Old Farts Forum List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: coff Content-Type: multipart/mixed; boundary="===============5674176573224452745==" Errors-To: coff-bounces@minnie.tuhs.org Sender: "COFF" --===============5674176573224452745== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dMyqICaxQaaUjrCL" Content-Disposition: inline --dMyqICaxQaaUjrCL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Monday, 27 December 2021 at 9:52:24 +0700, Rudi Blom wrote: > My official status seems a bit unclear (although I'm getting paid :-) ) but > unofficially I keep an eye on a lot of a customers servers. Ad-hoc shell > scripts still have similar structure as I know how to 'cut and paste'. > > These scripts are run remotely via a 'homegrown' client-server setup. Many > should run on different UNIX environments and therefore have near the > beginning an OS check. Depending on that I can set PATH and anything else > important. > > # > # check what type of OS this system runs on > # > OST=`uname -m` That's the architecture. Wouldn't just `uname` be better? I have: case `uname` in Linux) PATH=.:~:/usr/local/bin:/usr/local/sbin:~/bin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin:/usr/local/bitkeeper:/Photos/Tools export SHELL=/bin/bash ;; NetBSD) PATH=.:~:/usr/pkg/bin::/usr/local/bin:/usr/local/sbin:~/bin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin:/usr/local/bitkeeper:/usr/local/gnu-autotools/bin:~:/Photos/Tools export SHELL=/usr/pkg/bin/bash ;; FreeBSD) PATH=.:~:/home/local/bin:/usr/local/bin:/usr/local/sbin:~/bin:/usr/bin:/usr/sbin:/bin:/sbin:/Photos/Tools:~ export SHELL=/usr/local/bin/bash ;; ... And yes, lm, if you're looking, there's really a /usr/local/bitkeeper in there. It's been years, but I don't tidy these things up very often. I only just removed mosaic from my fvwm2 config menus. Greg -- Sent from my desktop computer. Finger grog@lemis.com for PGP public key. See complete headers for address and phone numbers. This message is digitally signed. If your Microsoft mail program reports problems, please read http://lemis.com/broken-MUA.php --dMyqICaxQaaUjrCL Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iEYEARECAAYFAmHJNlkACgkQIubykFB6QiNNVgCgkHvd6kU7+Yr3RGVIeNrXbF91 NpgAoJ7JLDSp+aUJ5eB9SF5zA/Awflj0 =3Tb8 -----END PGP SIGNATURE----- --dMyqICaxQaaUjrCL-- --===============5674176573224452745== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KQ09GRiBtYWls aW5nIGxpc3QKQ09GRkBtaW5uaWUudHVocy5vcmcKaHR0cHM6Ly9taW5uaWUudHVocy5vcmcvY2dp LWJpbi9tYWlsbWFuL2xpc3RpbmZvL2NvZmYK --===============5674176573224452745==--