Completed

GET_SSH_VALUE Help

Hi,
I am struggling with how to use the GET_SSH_VALUE command to run multiple commands with sudo at the same time. Here is my scenario:
- Connect to linux server
- sudo su -
- cd /fs21_pd/weather/WxRegressionTestFiles/script
- ./start_weather.pl -e p -q -k System_team/Web_Services_REST/CWA.cfg

All of the above commands needs to be run as root.
Please let me know how I would do this. I have tried many different things but I can't seem to figure out how to get it to work. See attached screenshots of what I am trying.

0
2 comments
Avatar
Dominic Luminello

It appears I was able to figure it out.  Here is the command I used in one line and it seems to be working.

echo ${labc.password} | sudo -k -S bash -c 'cd /fs21_pd/weather/WxRegressionTestFiles/script ; ./start_weather.pl -e p -q -k System_team/Web_Services_REST/CWA.cfg'

0
Comment actions Permalink
Avatar
Joseph Hamdan

Hi Dominic,

Glad it's working. Please let us know if you have any further questions or comments.

Regards,

Subject7 Team

0
Comment actions Permalink

Please sign in to leave a comment.