nutsh
8/30/2013 - 8:29 AM

Execute Bash Via SSH

Execute Bash Via SSH

ssh ${DB_SERVER_USER}@${DB_SERVER} "bash -s $DB_INSTANCE_NAME $USR_NAME $USR_PSW" < compileInvalidObject.sh
ssh root@MachineB 'echo "rootpass" | sudo -Sv && bash -s' < local_script.sh