Code: Select all
plink.exe -ssh root@192.168.0.30 -pw password_here /bin/sed -i -e '/export s_sshhost="hostname1_here"/a export s_vpnhost="hostname2_here"' /file/to/edit/here
I get this message
Code: Select all
& was unexpected at this time
If I run this command directly on the Linux computer it works, so I know its not a problem with the command
Code: Select all
/bin/sed -i -e '/export s_sshhost="hostname1_here"/a export s_vpnhost="hostname2_here"' /file/to/edit/here
whats wrong with my batch file?
Thanks
Aristos