Search Results

Search: Posts Made By: icemanj
8,199
Posted By icemanj
Hey I figured it out. I should've tried this in...
Hey I figured it out. I should've tried this in the first place, but
I was so determined on the other method.

Pssh -i -h server.txt ...."export display 1
Ip:0.0; xterm -e script.sh

In the...
8,199
Posted By icemanj
Thanks. I was able to get a prompt with my user...
Thanks. I was able to get a prompt with my user id.

Attempted to build from there... with
pssh -i -v -h ectsrv -A -O StrictHostKeyChecking=no "export DISPLAY=IP:0.0; xterm -hold -e bash sudo...
8,199
Posted By icemanj
xterm -e sudo bash -c "'cmd1;cmd2;ls;exec bash'" ...
xterm -e sudo bash -c "'cmd1;cmd2;ls;exec bash'"
I've also tried
pssh -i -h ectsrv -A -O StrictHostKeyChecking=no "export DISPLAY=IP address:0.0; xterm -hold bash -e "sudo /path/sap_sudo.sh...
8,199
Posted By icemanj
Hey Thanks for all of your quick replies. I...
Hey Thanks for all of your quick replies. I appreciate that!!

I'm able to sudo to my sap(adm) user via the sudo /path/sap_sudo.sh. So that part works well with all xterm windows at my user prompt...
8,199
Posted By icemanj
Pass Multiple Commands and Open Multiple Xterms via PSS
Hello,

I'm attempting to open multiple xterms and run a command as an SAP user via sudo using PSSH. So far, I'm able to run PSSH to a file of servers with no check for keys, open every xterm in...
5,680
Posted By icemanj
Thank you! That helped, but what sealed...
Thank you!

That helped, but what sealed the deal was that I had to add the path to the commands

and I added sudo -v...

ssh system 'sudo -v /path/command;command2'

Worked like a...
5,680
Posted By icemanj
How to automatically run commands after SSH and SUDO not working?
I'm working on a script to SSH and SUDO as (sap user sidadm) then automatically run commands that the sidadm user can run such as R3trans -v, tp, etc..

I can SSH without password and SUDO..
but...
Showing results 1 to 7 of 7

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