The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 -->
  #6 (permalink)  
Old 02-11-2009
ravi.sri24 ravi.sri24 is offline
Registered User
  
 

Join Date: Feb 2009
Posts: 9
Quote:
Originally Posted by otheus View Post
When you run su as you explained, it tries to load the environment of "bin". If you want root's environment instead, use:

Code:
su bin -c start.sh
This will use the current environment but run start.sh as user bin. If you want to run it with root's environment, you must do as I described in my previous post.

When i run the below command i want's bin environment varibales loaded but it's not loading so my process getting failed with the the reason NoClassDefination found error

su - bin -c "start.sh"