  | | | how to execute an excutable file | how to execute an excutable file 2007-02-27 - By Rick Stevens
Back On Tue, 2007-02-27 at 15:41 +0530, narendra wrote: > Hi, > why shouldn't current working directory be in the PATH??
People have gotten themselves into trouble by having executables in the current directory and running them by accident. The entire purpose of having a PATH is to quarantine executables into a few well-known directories.
Is it really so onerous to type in the extra two characters, "./"?
> On Tue, 27 Feb 2007 10:43:17 +0100, Johan Lithander wrote > > You most likely tried to run it as a.out instead of ./a.out > > The current working directory is usually not in the PATH (and > shouldn't be in the PATH either !!!). > > > > /J > > > > > > > __ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __ > From: redhat-install-list-bounces@(protected) > [mailto:redhat-install-list-bounces@(protected)] On Behalf Of Nofriyadi > Nurdam > > Sent: den 27 februari 2007 10:39 > > To: redhat-install-list@(protected) > > Subject: how to execute an excutable file > > > > > > Hi all, > > > > I have compiled the program "HelloWorld.c". > > The C compiler gave me the executable file a.out as output. > > As I executed the a.out in console, I got answer "command not > found". > > Is there someone who can tell me about that. > > > > Thanks in advance > > Nofriyadi > > > > > __ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __ > We won't tell. Get more on shows you hate to love > > (and love to hate): Yahoo! TV's Guilty Pleasures list. > > > Narendra Kumar > PhD Scholar > Bioinformatics Center > National Institute of Immunology > Aruna Asaf Ali Marg > New Delhi-110067 (See http://lhi-110067.ora-code.com) > Telephone Numbers (EPABX): 26717121 to 26717145 > Fax : 91-11-26162125 & 91-11-26177626 > > __ ____ ____ ____ ____ ____ ____ ____ ____ ____ > Redhat-install-list mailing list > Redhat-install-list@(protected) > https://www.redhat.com/mailman/listinfo/redhat-install-list > To Unsubscribe Go To ABOVE URL or send a message to: > redhat-install-list-request@(protected) > Subject: unsubscribe -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- - Rick Stevens, Principal Engineer rstevens@(protected) - - VitalStream, Inc. http://www.vitalstream.com - - - - The light at the end of the tunnel is really an oncoming train. - -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ Redhat-install-list mailing list Redhat-install-list@(protected) https://www.redhat.com/mailman/listinfo/redhat-install-list To Unsubscribe Go To ABOVE URL or send a message to: redhat-install-list-request@(protected) Subject: unsubscribe
|
|
 |