Thanks,
It's really a good explanation, and it works. But I found that if I enter
the command alone (ibmgr) been on the proper directory with another user
(before I was trying with root), it works.
So, does Linux check for the current directory also when the user isn't
root ?
Thanks in advance,
Aldo
> ----------
> De: Matt Greer[SMTP:[EMAIL PROTECTED]]
> Enviado el: Jueves, 09 de Agosto de 2001 03:27 p.m.
> Para: Caruso Aldo
> Asunto: Re: [newbie] Linux Commands
>
> on 8/9/01 12:05 PM, Caruso Aldo at [EMAIL PROTECTED] wrote:
>
> > Hi,
> >
> > I've installed Interbase and, to start it, the manual says I must type
> > ibmgr, which is a file that contains commands (it starts with #! /bin/sh
> ).
> >
> > Well, I change the directory where that file resides, that file has
> > execute permissions for the User, the Group and the Others, but when I
> try
> > to execute the batch files the Console complains saying "command not
> found".
> >
> > Why ?
>
> Your shell (most likely bash) has a set group of directories it looks in
> for
> executables, called the path. If you type "echo $PATH" it will show all
> the
> directories that bash looks in when you give it a command. If it finds the
> command in one of those directories, it executes it. If not, it says the
> command is not found.
>
> bash can also execute a command if you give it a literal path, such as
>
> /home/matt/myprogram
>
> Since I told bash exactly where to go to find the program, it can run it,
> even though my home directory is not in the path.
>
> You can also do this with a .
>
> ./myprogram
>
> the "." means "current directory", so bash will look in the directory you
> are in for the program you want to run. So you should type "./ibmgr" from
> where the program is.
>
> Matt
>
>
>
> _________________________________________________________
>
> Do You Yahoo!?
>
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>