help needed

hello, just install QNX 6.1, and try a hello program, step by step,
following on line document,
even though I can see compiled hello file in current directory, but when to
excute it, the following error comes out, /bin/sh: hello: not found, why?

David

try ./hello

QNX does not seem to look for the file in local directory, only usr/bin.

-Farooque

“David Liu” <david2003111@hotmail.com> wrote in message
news:acl182$e27$1@inn.qnx.com

hello, just install QNX 6.1, and try a hello program, step by step,
following on line document,
even though I can see compiled hello file in current directory, but when
to
excute it, the following error comes out, /bin/sh: hello: not found, why?

David

Actually, most unix systems will not have ‘.’ in your PATH by default. This
is for security reasons: people, particularily root, don’t want to execute
spurious binaries that just happen to be in the working directory.

cheers,

Kris

“Farooque Khan” <farooquek@concretioindia.com> wrote in message
news:acl3se$fv6$1@inn.qnx.com

try ./hello

QNX does not seem to look for the file in local directory, only usr/bin.

-Farooque

“David Liu” <> david2003111@hotmail.com> > wrote in message
news:acl182$e27$> 1@inn.qnx.com> …
hello, just install QNX 6.1, and try a hello program, step by step,
following on line document,
even though I can see compiled hello file in current directory, but when
to
excute it, the following error comes out, /bin/sh: hello: not found,
why?

David
\