View Single Post
Old 05-12-2009, 01:48 AM   #1 (permalink)
Dinnerticketboy
Registered User
 
Join Date: May 2009
Posts: 1
OS: Vista x64 Ultimate


EEK! 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?
Dinnerticketboy is offline   Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here