Find the answer to your Linux question:
Results 1 to 2 of 2
Hi all, My application modified the PATH variable for its proper running using /etc/profile file. Problem is PATH variable is not getting set on my RHEL5 machine, where as the ...
  1. #1
    Just Joined!
    Join Date
    Jan 2009
    Posts
    13

    /etc/profile not getting executed on RHEL5 box

    Hi all,

    My application modified the PATH variable for its proper running using /etc/profile file. Problem is PATH variable is not getting set on my RHEL5 machine, where as the same works fine on RHEL4.

    Basically the command ". /etc/profile" sets the PATH variable for RHEL4 however, it does not do so on RHEL5.

    Kindly provide some inputs on how to resolve this issue on Red HatLinux5box.
    Linux5 details:
    # cat /etc/*release
    Red Hat Enterprise Linux Server release 5.2 (Tikanga)

    Linux4 used is :# cat /etc/*release
    Red Hat Enterprise Linux AS release 4 (Nahant Update 4)

    Else provide inputs on how to set the PATH variable on Linux5 using /etc/profile through a script probably.

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    can you post the contents of your /etc/profile file? Does it have any line in it like PATH=/usr/bin:/bin ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...