I am trying to execute a remote command on a OVMS server using plink. When I try executing a simple command its working fine:
plink -ssh -l USERID HOST-pw PASSWORD DIR
But when i start using some complex command it is throwing error:
plink -ssh -l USERID HOST-pw PASSWORD wnb search/keys="TRN|0567 6789"/log/sys
Please suggest.
Trials and errors yield their fruits. Indeed as Hein was suggesting, the issue was with quotes not being properly transmitted, yet with different syntax.
Here's the syntax that worked for me (Windows:plink(0.63) >> VMS):
on VMS results in:
THUS: plink>>VMS
double-quote=""", but may still have trouble with< > | << >>chars as these are confused for pipes by Windows cmd CLI.BETTER: use
plink -m cmds-fileoption to pass remote commands in a local file:where
cmd.vmsfile contains: