Search Results

Search: Posts Made By: ravi.sri24
6,225
Posted By ravi.sri24
I understood you, you said when we run the su...
I understood you, you said when we run the su command with "-" you are saying it's will load the bin's profile but in my case it's not loading the bin's profile it's taking the root's environment...
6,225
Posted By ravi.sri24
When i run the below command i want's bin...
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"
6,225
Posted By ravi.sri24
Hi Thanks for the reply, I have the bin direcotry...
Hi Thanks for the reply, I have the bin direcotry and when the run the start.sh script file it's running fine but when am running the start.sh using the root shell by using the su command it's not...
4,634
Posted By ravi.sri24
start.sh is the my original script which is...
start.sh is the my original script which is running fine when i run by logging into the bin account

Am getting problem only when am trying to run using the root-shell, the reason for running the...
4,634
Posted By ravi.sri24
Yes i have tired by giving space also but still...
Yes i have tired by giving space also but still no luck
4,634
Posted By ravi.sri24
Yes i have placed properly only, below is the...
Yes i have placed properly only, below is the command

./home/bin/.profile

su - bin -c "/opt/bin/test/receiver/start.sh
4,634
Posted By ravi.sri24
Thanks for the reply, I have tried the way you...
Thanks for the reply, I have tried the way you suggested but no luck still it's not taking the bin's environment varibales
4,634
Posted By ravi.sri24
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...
6,225
Posted By ravi.sri24
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...
Showing results 1 to 9 of 9

 
All times are GMT -4. The time now is 07:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy