Google
  Web www.spinics.net

Re: how to execute an excutable file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


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@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/redhat-install-list
> To Unsubscribe Go To ABOVE URL or send a message to:
> redhat-install-list-request@xxxxxxxxxx
> Subject: unsubscribe

_______________________________________________
Redhat-install-list mailing list
Redhat-install-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/redhat-install-list
To Unsubscribe Go To ABOVE URL or send a message to:
redhat-install-list-request@xxxxxxxxxx
Subject: unsubscribe

[Home]     [Fedora Users]     [Red Hat General]     [Red Hat Watch List]     [Red Hat Development]     [Samba List]     [Kernel List]     [Kernel Newbies]     [Hot Springs]     [Yosemite News]

Powered by Linux