how to execute an excutable file

Micros50 micros50 at verizon.net
Tue Feb 27 21:23:48 UTC 2007


Note: 
You would run the executable in one of the following ways
           
1) If you are currently in the same directory as the executable:

 $ ./a.out

2) Or by specifying the entire path. Let's say the path to the
executable is /home/smith. You just do this:

  $ /home/smith/a.out


Note:

You can also specify a name for your executable as follows:

  $ cc hello.c  -o hello

and then you would run the executable "hello"

  $ ./hello

or
  $ /home/smith/hello

Hope that helps.

mylar


On Tue, 2007-02-27 at 01:38 -0800, Nofriyadi Nurdam wrote:
> 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.
> _______________________________________________
> Redhat-install-list mailing list
> Redhat-install-list at redhat.com
> https://www.redhat.com/mailman/listinfo/redhat-install-list
> To Unsubscribe Go To ABOVE URL or send a message to:
> redhat-install-list-request at redhat.com
> Subject: unsubscribe




More information about the Redhat-install-list mailing list