I'm new to shell scripting and having a little trouble.
I'm trying to execute a remote script from local machine. The script on local machine is passed four arguments, and it executes the following line:
ssh $STACK 'bash -l -c "./deploy_intermediate.sh $2 $3 $4"'
However, I cannot get $2, $3, and $4 to put out the passed arguments. Is there any way to be able to access them within single quotes? What is the best way of executing the above line.
I would really appreciate any help.
thanks.