The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 02-10-2009
ravi.sri24 ravi.sri24 is offline
Registered User
  
 

Join Date: Feb 2009
Posts: 9
root executes a script as another user

Hi All,
Am using the below command to start my application using the root user
su - bin -c "/home/bin/test/start.sh"

but am getting the error becaue i have set some environment varibales in bin's .profile

when i execute the command start.sh by logging directly into bin account it's working fine

But where as if i ran the above command using the root user am getting error seems it's not loading the bin's .profile file

Please advise me how to load the bin's profile while using the su