From owner-freebsd-questions Sun Jul 2 13:14:52 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.telestream.com (mail.telestream.com [205.238.4.5]) by hub.freebsd.org (Postfix) with ESMTP id 3DBC937BE52 for ; Sun, 2 Jul 2000 13:14:50 -0700 (PDT) (envelope-from keith@mail.telestream.com) Received: from localhost (keith@localhost) by mail.telestream.com (8.9.3/8.9.3) with ESMTP id NAA19472; Sun, 2 Jul 2000 13:14:45 -0700 Date: Sun, 2 Jul 2000 13:14:45 -0700 (PDT) From: To: R Joseph Wright Cc: freebsd-questions@FreeBSD.ORG Subject: Re: making shell script run in its own directory In-Reply-To: <20000702130901.A66305@manatee.mammalia.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Never really done that before but just thinking off the top of my head I would say that if you set PATH in the script it will run reletive to what you set PATH to. Keith ================================= Keith W. At the helm ================================= On Sun, 2 Jul 2000, R Joseph Wright wrote: > How do I make a shell script run in the directory where it resides rather than > the directory where it was called from? > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message