Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Run AppleScripts and shell scripts in a Windows VM' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Run AppleScripts and shell scripts in a Windows VM
Authored by: syao on May 17, '10 03:15:26PM

I used a very similar way back when I needed to generate Growl notifications from Windows Live Messenger running into a Parallels Desktop VM.

A hint I feel like adding, in case people don't want to store their password in a plain text file (being paranoid is never a bad thing, is it), you can use puttygen.exe (download from the same page as plink.exe) to generate a key pair to be used with plink.

  1. In the VM, run puttygen and generate a new 1024-bit SSH2-DSA key
  2. Hit the Save private key button and store it to a convenient location (example: C:\Windows\privkey.ppk)
  3. Copy the text in the "Public key for pasting into OpenSSH authorized_keys file"
  4. Back to the Mac desktop, run the command touch ~/.ssh/authorized_keys && open -t ~/.ssh/authorized_keys from a Terminal
  5. Paste in the text editor that pops up the key you previously copied, save and close it

You can now use the following command to run the above mentioned script, and you won't need to edit it if you change your Mac password (it doesn't use passwords anymore to login):
plink.exe -ssh -i C:\Windows\privkey.ppk -noagent -m disable.txt Dave@DavesMac



[ Reply to This | # ]
Run AppleScripts and shell scripts in a Windows VM
Authored by: davechevell on May 18, '10 12:51:15AM

That's excellent - thanks! A very necessary addition.


I'm curious about getting Windows apps to display growl notifications - not just MSN, but anything... any chance you could point me in the right direction?



[ Reply to This | # ]