VBScript WshShell.Run from Windows to Linux host
I'm writing a script from a Windows pc to try and get the current keyboard language that is set on a remote Linux pc.
It uses the free command Plink (unless anyone knows a better method) to remote run a series of commands on the linux host and assign 'KeyCode' with the answer.
KeyCode = WshShell.Run("plink.exe root@10.101.1.1 -pw root setxkbmap -print -display :0.0 | grep xkb_symbols | awk '{print $4}' | awk -F "+" '{print $2}')
If I run the command directly from the linux shell it works fine, any ideas?
|