shell scripts

If you want to execute a Shell Script, that connects to another server and executes another script, this is the nomenclature. Make sure to include the && between each command.

ssh root@$SERVERIP 'cd /PATH/TO/SHELL SCRIPT && ./SCRIPT.sh

Leave a Reply

Your email address will not be published. Required fields are marked *