Date: Mon, 27 Mar 2000 16:09:11 +0100 From: J McKitrick <jcm@freebsd-uk.eu.org> To: questions@freebsd.org Subject: writing scripts Message-ID: <20000327160911.C9691@dogma.freebsd-uk.eu.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000327160911.C9691>