escaping quotes in putty remote command

1.1k Views Asked by At

I have a less glorious task to solve, not much success so far.

I want to execute a remote script using "Remote command:" field in putty: script param1 'param 2 with spaces'

On linux simple escaping works well, i.e. ssh user@remotehost script param1 \'param 2 with spaces\', but not on windows.

Please recommend.

1

There are 1 best solutions below

0
On BEST ANSWER

Just found the solution - putty does the escaping for you.

The solution in this example is entering the remote command simply like: script param1 'param 2 with spaces'