|
Running scripts via su
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 .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 profile
Please advise me how to load the bin's profile while using the su
|