I'm using a bash shell and trying to figure out the right way to write the following:
ssh mysuer@remotehost 'echo "update user set url = \'localhost\' where url = \'mydomain.com\';" >> /tmp/db.sql'
So far the above is not working.
After hitting enter the following line is a >
as if it is expecting for me to close an open quote somewhere. What do I need to do so that this
update user set url = 'localhost' where url = 'mydomain.com';
is output to the remote file?