* Del Campo, Damian ([EMAIL PROTECTED]) [001127 18:26]:
> Message-ID: 
><[EMAIL PROTECTED]>
> From: "Del Campo, Damian" <[EMAIL PROTECTED]>
> To: "'RedHat, DevList'" <[EMAIL PROTECTED]>
> Subject: C compiled executalbe problem
> Date: Tue, 28 Nov 2000 10:17:27 +1100
> X-Mailer: Internet Mail Service (5.5.2650.21)
> Reply-To: [EMAIL PROTECTED]
> 
> Have just started programming some C on RH6.1
> 
> Compiling using "gcc - o program program.c".
> 
> Problem is that from the directory this sits in, I can't actually operate
> the program
> ie program <Enter> doesnt' work whereas going up one directory level and
> calling "directory/program" does.
> Likewise, if I stay in the directory with the program and call it via
> "../directory/program" it works also.
> 
> Why is this, that I can't call it directly from where it sits?
> 
> It isn't a directory permissions/properties thing because I copied the
> program up a directory level and now couldn't call it directly from that
> directory and again had to call from "its" upper directory.
> 
> Thanks in advance,
> Damian
> 
> 
> 
> _______________________________________________
> Redhat-devel-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-devel-list

your current working directory (cwd) is not in your path.  The way to call the
program while your working on it is to "./program"  or add the cwd to your
path.
That's not the best idea, use the ./program method.
-- 
Derek Tattersall                        [EMAIL PROTECTED]



_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

Reply via email to