running a simple command line tool

Chris Green cl at isbd.net
Wed Feb 22 15:16:10 UTC 2012


On Wed, Feb 22, 2012 at 08:49:17AM -0600, CJ Tres wrote:
> On 02/22/2012 08:36 AM, Avi Greenbury wrote:
> 
> >
> >If you enter simply the name of what you want to run, like
> >
> >$ natool
> >
> >Then your shell will try to find it in your $PATH. $PATH is a variable
> >that contains a colon-delimited list of directories in which you can
> >expect to find binaries to run (run   echo $PATH   if you're interested
> >in what they are.
> >
> >If you want to run a command outside of the $PATH you need to provide
> >the path to it. If it's in your current directory, that's simply './',
> >so you might do
> >
> >$ ./natool
> >
> >to run natool in your current directory, and ../natool to run something
> >called natool in your parent directory. What you probably want,
> >therefore, is:
> >
> >./natool --neuros-path /mnt/neuros dirsync ~/music/ my_music dbsync
> >
> 
> Yes. I could have been a bit more detailed.
> I did try ./natool also, from within and outside the dir that hold
> the binary.
> Natool (or rather natool) gets the result "No command 'natool' found..."
> ./natool results in "./natool: No such file or directory" wherever
> it is run from.
> 
Show us the result of "ls -l" in the directory where you [think you]
have natool installed.

-- 
Chris Green




More information about the ubuntu-users mailing list