[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: [LI] c compiler



type ./a.out to execute your program. In Unix, the programs you run are the
programs you have in your path unless you explicitly use an absolute
filename , i.e., one with the path( assuming you have the rights to
access/execute it). The current directory is NOT searched by default in
order to execute a file , unlike dos. This is so because having the current
directory in your path is one of the biggest security holes you could have.
Imagine some malicious program named ls. You go across to that directory and
type ls and THAT gets executed and does some damage to you , since it now
has access to your files. Think if you has root permissions!For more
information about this , refer to the Linux gazette , volume 45 if my memory
serves right.
Shanker
----- Original Message -----
From: jayarambr <jayarambr@xxxxxxxxxxxxxxxx>
To: <rohits@xxxxxxxxxxxxxx>
Cc: <linux-india@xxxxxxxxxxxxxxxxxxxxx>
Sent: Friday, November 12, 1999 10:56 PM
Subject: [LI] c compiler


> Dear Rohit,
> Thank you for your suggestion. As I am new to Linux, I was not able to
> express my problem clearly.
> I coded a simple program inC in the Vi .editor and named the file
> Jay.c.Then I tried to compile it by giving the command cc jay.c at the
> prompt. I think the compiling is taking place because the prompt appears
> after a little while. When I type a.out at the prompt ,nothing happens .
> Hope I have made myself clear.Please advice how I can make use of the C
> compiler in R.H.6.1
> Thanking you
> Jayaram.
> --------------------------------------------------------------------------
--------------------
>
> Suggestions by other linux users  welcome.
>
> --------------------------------------------------------------------
> The Linux India Mailing List Archives are now available.  Please search
> the archive at http://lists.linux-india.org/ before posting your question
> to avoid repetition and save bandwidth.

--------------------------------------------------------------------
The Linux India Mailing List Archives are now available.  Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.