Akbar Pasha wrote:
>
> hi all,
>
> i am new to linux and i was getting a simple problem when trying to run
> my programs using GCC. what i did was i wrote a simple program in Emacs
> and then at the console i did
>
> "gcc -o hello hello.c"
>
> and when i type "hello" at the console it says "command not found"
>
> i also created the usual "a.out" file and tried it, but i get the same
> message.
>
> can anyone explain why i am getting this?? may b its silly to ask u
> this. but hey, i am a newbie.:)
>
> i am running RH 7.0 with GNOME and BASH.
>
> thanx in advance
>
have You tried ./hello or ./a.out?
current directory is excluded from $PATH by default for sake of security
reasons.
begin:vcard
n:Filiapau;Ihar
tel;pager:+375 (0) 17 2850000#6683
tel;fax:+375 (0) 17 2841537
tel;home:+375 (0) 17 2118441
tel;work:+375 (0) 17 2841371
x-mozilla-html:TRUE
url:www.iph.to
org:Enformatica Ltd.;Linux Developement Department
adr:;;Kalinine str. 19-18;Minsk;BY;220012;Belarus
version:2.1
email;internet:[EMAIL PROTECTED]
title:Software Developer
note:(none)
x-mozilla-cpt:;18368
fn:Philips
end:vcard