Date: Tue, 6 Aug 2002 09:04:11 -0600 From: "Grant Cooper" <grant.cooper@nucleus.com> To: "John Bleichert" <syborg@stny.rr.com>, "Roman Neuhauser" <neuhauser@bellavista.cz> Cc: <questions@FreeBSD.ORG> Subject: Re: executing a file in general Message-ID: <01d901c23d5a$8967afe0$2afececd@TCOOPER> References: <Pine.LNX.4.44.0208060939400.6505-100000@janeway.vonbek.dhs.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Yes that answered it. Thanks. ----- Original Message ----- From: "John Bleichert" <syborg@stny.rr.com> To: "Roman Neuhauser" <neuhauser@bellavista.cz> Cc: "Grant Cooper" <grant.cooper@nucleus.com>; <questions@FreeBSD.ORG> Sent: Tuesday, August 06, 2002 7:42 AM Subject: Re: executing a file in general > > > From: "Grant Cooper" <grant.cooper@nucleus.com> > > > To: <questions@FreeBSD.org> > > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01d901c23d5a$8967afe0$2afececd>