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
_______________________________________________
Fab-user mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/fab-user

Reply via email to