Hi, all. My host machine is a MacBook Pro running Lion. My guest machine is Windows 7 in Parallels 7. I need to invoke a Unix Executable from Windows. The trouble is that I need to do this from within Eclipse, and it will only let me select a .exe or .bat file. I'm pretty sure that "Open on Mac" will work, but I need the command line equivalent of that. I'm not sure how to do that in a .bat file. Is it possible? Thanks, Lee Grey Kony, Inc.
Well, Windows is Windows and can't run Unix executables (natively), and .exe and .bat are Windows executables and scripts, respectively, not Unix. To run one from a command line in Windows (Command Prompt), just cd to the directory where the .exe or .bat lives, type the name of the file, and hit return. There's nothing more to it than that. Am I missing something here? Steve
What I am looking to do is spawn a new process on the Mac side from the Windows side. In Windows running under Parallels, there are context menus such as Open on Mac or Open with... that lets you select a Mac application, so what I'm suggesting is not that far-fetched. I need a command or series of commands in a .bat file (I'd even settle for an API that I can invoke programmatically) that I can call from Windows (specifically within Eclipse) that will cause an app to run in Mac OS X. Thanks!
I'd like to do this too I'm working on my console2 configuration in Windows. When I'm in terminal on the Mac, I can type "mate ." to open a folder in textmate. In Windows, I can find a file in Windows Explorer, right-click it, then select "Open on Mac" which works great. I would like to be able to open text files on the mac from a command line in windows. Ideally, "mate ." would open Textmate on the mac and load the contents of the windows folder.
The Windows guest is pretty completely isolated to just the guest. Unless Parallels offers some API for calling Tools from the guest's command line and passing instructions that way, there's absolutely no built-in mechanism that I'm aware of for you to use Windows command-line tools to call anything on the host machine, at least not in the way you describe. If you can open an ssh connection from your guest into your host, then Bob's your proverbial uncle. That's probably your best bet -- try PuTTY or Cygwin to get such functionality on Windows.
Thought I might be close to this using the Platypus app that wraps shell scripts into Mac apps. Unfortunately I can't get parallels to provide access to these created apps the same way it provides access to most of the other Mac apps.