[98289] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: Running a C program

daemon@ATHENA.MIT.EDU (Hossein S. Zadeh)
Sat Nov 7 23:00:19 1998

Date: Sun, 08 Nov 1998 03:59:12 +0000
From: "Hossein S. Zadeh" <hossein@bf.rmit.edu.au>
Reply-To: hossein@bf.rmit.edu.au
To: redhat-list@redhat.com
Resent-From: redhat-list@redhat.com

Ronnie Thum wrote:
> 
> Hi,
> 
> Whenever I run a C program compiled in GCC ver 2.7.2.3, I need to type
> './programname'.
> Why can't I just type 'programname' ?
> Is there any settings I need to change ?

add the following line to your startup script (eg. /etc/profile, or
/etc/bashrc, or ~/.bashrc, or .....):

export PATH="$PATH:./"

Note: I strongly discourage you to do this for root, as on multiuser
system this could become a security hole waiting to be exploited.


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post