*BSD News Article 67678


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mira.net.au!inquo!in-news.erinet.com!bug.rahul.net!rahul.net!a2i!genmagic!sgigate.sgi.com!swrinde!newsfeed.internetmci.com!News.LiveNet.Net!beast
From: jsloan@LiveNet.Net (Jim Sloan)
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: Re: Q: How to create executable files?
Date: Sat, 04 May 96 22:36:17 GMT
Organization: LiveNet, Inc.
Lines: 39
Message-ID: <4mgm2j$g1t@PaperBoy.LiveNet.Net>
References: <4mg599$clu@news.aimnet.com>
NNTP-Posting-Host: magenta.livenet.net
X-Newsreader: News Xpress 2.0 Beta #0

In article <4mg599$clu@news.aimnet.com>, trh@aimnet.com (TRH TRH) wrote:
>
>Hello:
>
>I am trying to create small executable files. For example something like
>
>
>
>elm -s trh $1 < $1
>
>After typing it into a file and issuing comand chmod +x on that file
>I expect it to work with a parameter I supply in lieu of '$1'.
>
>It does not work on a new account that is running BSD. It does
>run on SunOS, AIX etc.
>
>I get the error message 'comand not found'.
>
>What am I doing wrong?
>
>Thanks,
>
>Al

two things, since current directory is NOT part of the path by default in BSD 
(SunOS, AIX, Linux and other SysV type *nix OSes it is), then the correct 
procedure is ./commandname  on the otherhand, if the file is in the user path, 
then it isn't in the locate db yet.  run /usr/libexec/locate.updatedb for it 
to be added and it will be found in the path then.

------------------------------------------------------------------------
 Jim Sloan                        jsloan@livenet.net
 Vice President
 LiveNet, Inc.                         
 413 Davis St. Suite 106          Full Service Internet Provider
 Virginia Beach VA 23462          Dialup and dedicated connections
 Ph: 804-499-9328                 Virtual Web, Email, and FTP hosting
 http://www.livenet.net           info@livenet.net webmaster@livenet.net
------------------------------------------------------------------------