gudii9
asked on
script execution
to run below script to start web logic
/opt/scripts/bea_start admin
after login i cannot directly execute
i have to go to below directory to execute
cd /xyz/home/user123/opt/def/ bea_domain s/12/xyz_d ev1/server s/xyz_dev1 _admin/log s
i though below is absolute path and as soon as i login i should be able to run from
/opt/scripts/bea_start admin
also i have to run as admin only not as my user id
why i cannot run as soon as i login from root directory(if i am not mistaken that is what i go as soon as i login)
also how to see who all can run the script and how to change that script permission so that even if i login i can execute not just admin
Please advise
/opt/scripts/bea_start admin
after login i cannot directly execute
i have to go to below directory to execute
cd /xyz/home/user123/opt/def/
i though below is absolute path and as soon as i login i should be able to run from
/opt/scripts/bea_start admin
also i have to run as admin only not as my user id
why i cannot run as soon as i login from root directory(if i am not mistaken that is what i go as soon as i login)
also how to see who all can run the script and how to change that script permission so that even if i login i can execute not just admin
Please advise
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
So do that then. Go to the folder with the bea_start.config and start it.
Define Login as how you do this... My guess is you're using ssh + let's be sure this is true.
Also provide an ls -l of the script your running + the output of the id command.
Also provide an ls -l of the script your running + the output of the id command.
ASKER
cd ~
from above root
when i run below
/opt/scripts/bea_start admin
above script will not run
where as
if i go to below path
cd /xyz/home/user123/opt/def/ bea_domain s/12/xyz_d ev1/server s/xyz_dev1 _admin/log s
then if i run
/opt/scripts/bea_start admin
it works
what is the difference i do not understand
please advise
from above root
when i run below
/opt/scripts/bea_start admin
above script will not run
where as
if i go to below path
cd /xyz/home/user123/opt/def/
then if i run
/opt/scripts/bea_start admin
it works
what is the difference i do not understand
please advise
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
cd ~
then when i ran script
bea_start must be run in the directory with the bea_start.config file.