From owner-freebsd-ports Wed Mar 11 01:58:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA18358 for freebsd-ports-outgoing; Wed, 11 Mar 1998 01:58:04 -0800 (PST) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from colossus.dyn.ml.org (dburr@206-18-113-218.la.inreach.net [206.18.113.218]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA18353 for ; Wed, 11 Mar 1998 01:58:01 -0800 (PST) (envelope-from dburr@colossus.dyn.ml.org) Received: (from dburr@localhost) by colossus.dyn.ml.org (8.8.7/8.8.7) id BAA19713; Wed, 11 Mar 1998 01:59:55 -0800 (PST) (envelope-from dburr) Message-ID: X-Mailer: XFMail 1.2 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <19980310221535.65281@nyef.res.cmu.edu> Date: Wed, 11 Mar 1998 01:59:55 -0800 (PST) Organization: Starfleet Command From: Donald Burr To: Marca Registrada Subject: RE: qmail Cc: ports@FreeBSD.ORG Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org My secret spy satellite informs me that on 11-Mar-98, Marca Registrada wrote: > qmail requires an ln -s to /usr/bin/sendmail to a version of it's own > sendmail.. myself in teh script that starts up qmail, I'd like to put > in > a check to make sure the symlink is still there (not clobbered by a make > world, say).. is there an easy way to check for the existance of a > symlink verses actual file? #!/bin/sh if [ -h /usr/bin/sendmail ] then echo the link is fine, don't panic else echo oh heavens! the qmail symlink has been clobbered! fi --- Donald Burr - Ask me for my PGP key | PGP: Your WWW HomePage: http://DonaldBurr.base.org/ ICQ #1347455 | right to Address: P.O. Box 91212, Santa Barbara, CA 93190-1212 | 'Net privacy. Phone: (805) 957-9666 FAX: (800) 492-5954 | USE IT. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message