From owner-freebsd-questions Mon Mar 27 7: 9:26 2000 Delivered-To: freebsd-questions@freebsd.org Received: from probity.mcc.ac.uk (probity.mcc.ac.uk [130.88.200.94]) by hub.freebsd.org (Postfix) with ESMTP id 992F137B926 for ; Mon, 27 Mar 2000 07:09:13 -0800 (PST) (envelope-from jcm@dogma.freebsd-uk.eu.org) Received: from dogma.freebsd-uk.eu.org ([130.88.200.97]) by probity.mcc.ac.uk with esmtp (Exim 1.92 #3) for questions@freebsd.org id 12Zb8h-000OQK-00; Mon, 27 Mar 2000 16:09:11 +0100 Received: (from jcm@localhost) by dogma.freebsd-uk.eu.org (8.9.3/8.9.3) id QAA09760 for questions@freebsd.org; Mon, 27 Mar 2000 16:09:11 +0100 (BST) (envelope-from jcm) Date: Mon, 27 Mar 2000 16:09:11 +0100 From: J McKitrick To: questions@freebsd.org Subject: writing scripts Message-ID: <20000327160911.C9691@dogma.freebsd-uk.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hey all, i'm still working on my script to change my .muttrc depending where i'm ssh'ing from. I tried grepping for my isp in the output of 'who', but grep produces a null output file even if it finds no results. SO when i test for the existence of that file, it will always be there after running grep. Is there a better way of detecting what machine i am telnetting in from and thaen choosing the correct .muttrc? Also, right now the script cats the color settings onto the end of a basic .muttrc. The problem is when i save aliases, they need to be moved into the base file, otherwise changes get lost. Is there a better way to do this? jm -- -------------------------------------------- Jonathon McKitrick -- jcm@freebsd-uk.eu.org The spice must flow.... -------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message