Link to home
Start Free TrialLog in
Avatar of gudii9
gudii9Flag for United States of America

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_domains/12/xyz_dev1/servers/xyz_dev1_admin/logs

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
Avatar of Gerwin Jansen
Gerwin Jansen
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gudii9

ASKER

i did

 cd ~

then when i ran script
bea_start must be run in the directory with the bea_start.config file.
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.
Avatar of gudii9

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_domains/12/xyz_dev1/servers/xyz_dev1_admin/logs

then if i run
/opt/scripts/bea_start admin
it works

what is the difference i do not understand
please advise
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial