santosh kumar
2017-01-09 08:06:05 UTC
All,
I have a requirement where i need to do the following.
#su - oracle
once logged in as user oracle need to run some commands from there
$ id
$ whoami
so i can achieve this in shell in this formate
ssh <hostname> 'su - oracle' <<EOF
id
whoami
EOF
Please do let me know how can i achieve this on multiple nodes.
Thanks,
santosh D
I have a requirement where i need to do the following.
#su - oracle
once logged in as user oracle need to run some commands from there
$ id
$ whoami
so i can achieve this in shell in this formate
ssh <hostname> 'su - oracle' <<EOF
id
whoami
EOF
Please do let me know how can i achieve this on multiple nodes.
Thanks,
santosh D