you can view the shell variables (including PATH) by typing `set`
and you can change the path by doing `export "$PATH:/your/directory"`
but get used to using ./ instead of adding . to your path, it's for
your own protection, and it's just how it's done in *nix
-Jesse
On 5/24/06, thomas <> wrote:
> hi Peter, Randy and m g
>
> finally get it running. thanks a lot.
> why can't the program in the usr directory when I am actually at the
> directory. (quite different from DOS and Windows)
>
> how do I view the PATH ?
>
> regards
> Thomas
>
>
>
> --- In m g <> wrote:
> >
> > On Mon, May 22, 2006 at 03:43:23AM -0000, thomas wrote:
> > > hi Peter,
> > > thanks for your reply.
> > > I compile the program in the usr directory: gcc -o b.out hello.c
> > > I use chmod
> > > when I execute the program I get this error:
> > >
> > > bash: /bin/b.out: No such file or directory.
> > >
> > > please help
> >
> > Try running the program like this
> >
> > $ ./b.out
> >
> > (note the "./" preceeding the file name)
> >
> > This tells the shell to look for the application in the current
> > directory ("."). Normally, the shell uses the PATH environment
> variable
> > to search for executables.
> >
> > Hope this helps,
> > Mike
> >
>
>
>
>
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Protect your PC from spy ware with award winning anti spy technology. It's free.
http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/CFFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|