![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Programming A discussion forum for programs and programming used in tech-related businesses. |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: May 2009
Posts: 1
OS: Vista x64 Ultimate
|
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? |
|
|
|
| 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 |
|
|
#2 (permalink) |
|
TSF Enthusiast
Join Date: Mar 2009
Location: Portland, OR
Posts: 756
OS: MS-Dos 6.22 - Win7
|
Re: VBScript WshShell.Run from Windows to Linux host
Just a guess, but looks like you might be missing a closing quote (to match the one I colored blue) just before the closing parenthesis.
__________________
Microsoft MVP - Windows Desktop Experience Of course I know all the answers; I just don't always match the answers to the right questions. Rated R for Violence -- When your PC flies through a window, that's violent, right? |
|
|
|
![]() |
| Thread Tools | |
|
|