I am trying to run a command-line remotely that contains some single, double quotes.
1) This is the command I want to have it running on remote host.
echo '{"id":12345,"name":"activate_cluster"}'
which should be of the exactly same format. Not any missing characters.
2) This is the full command I have used to trigger this command from my local host:
expect bashscript $hostname $user $pwd 'echo \'\{\"id\":12345\,\"name\":\"activate_cluster\"\}\'
3) But when it reaches the remote host, this command becomes,
echo {"id":12345,"name":"activate_cluster"}
The pair of single quotes is gone! Is there a way I can fix this?