From owner-freebsd-questions Tue Aug 6 8: 1:34 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C85B37B400 for ; Tue, 6 Aug 2002 08:01:32 -0700 (PDT) Received: from mail.nucleus.com (mail1.nucleus.com [207.34.101.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id D320143E4A for ; Tue, 6 Aug 2002 08:01:31 -0700 (PDT) (envelope-from grant.cooper@nucleus.com) Received: from TCOOPER (unverified [205.206.254.42]) by mail.nucleus.com (Vircom SMTPRS 1.4.232) with SMTP id ; Tue, 6 Aug 2002 09:01:42 -0600 Message-ID: <01d901c23d5a$8967afe0$2afececd@TCOOPER> From: "Grant Cooper" To: "John Bleichert" , "Roman Neuhauser" Cc: References: Subject: Re: executing a file in general Date: Tue, 6 Aug 2002 09:04:11 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Yes that answered it. Thanks. ----- Original Message ----- From: "John Bleichert" To: "Roman Neuhauser" Cc: "Grant Cooper" ; Sent: Tuesday, August 06, 2002 7:42 AM Subject: Re: executing a file in general > > > From: "Grant Cooper" > > > To: > > > Subject: executing a file in general > > > Date: Tue, 6 Aug 2002 07:04:57 -0600 > > > > > > I normally use sh to execute a shell file even though some examples > > > don't do it. I figure it has to do something with my shell. And than > > > there are other times its not a script, but an executable file. Some > > > files I can't run. Is there a command to man for this op? Or something > > > to get me started? > > > > > > For example: > > > # var/qmail/bin/qmail-popup blah /bin/checkpassword pwd > > > invalid command or file name - couldn't do a sh either. And I am > > > running from route. > > > > If you start a command string with a directory without a leading '/' your > shell will look in your current working directory for that directory, and > if it doesn't find it, the command won't work. This is a relative path. If > you start a command string with a '/' your shell will start at the top of > the tree and look for your directory/command there. This is an absolute > path. > > To run any executable in your current directory, use './command' - './' is > just pointer to the current working directory, which should *not* be in > your $PATH. > > Is this what you were asking? > > > /* > * John Bleichert > * syborg@stny.rr.com > * http://vonbek.dhs.org/latest.jpg > */ > > > 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