Running batch file on vm parallels with command issued from mac host

I am trying to run the node series selenium on local vm (running Windows 7) using a command line call on a Mac host.

The call just tries to run the batch file on vm.

When I run the batch file from vm, it runs correctly and node starts, so I know that the batch file is working correctly.

The path I'm using is the right one since I can run it from anywhere on vm.

I just can't call it from a Mac host.

It worked at some point, but I wonder if the update for Windows can update?

I tried to clear every firewall I could find. I am running Parallels 8 on a MacBook Air.

Here is the syntax I'm using.

prlctl exec {parallels_vm_name} 'C:\Users\{user_name}\Documents\selenium\startIeNode.bat {IP_address_here}' 
+4
source share
3 answers

Quotes around your

 'C:\Users\{user_name}\Documents\selenium\startIeNode.bat {IP_address_here}' 

should end after .bat.

The only reason for these quotes is the path, not the team itself. This should look more:

 'C:\Users\{user_name}\Documents\selenium\startIeNode.bat' {IP_address_here} 

Otherwise, the IP address is set as part of the path name instead of the parameter.

+3
source

I have almost the same setup / usage scenario that you describe: Win 7 VM on Parallels 8. I just installed that my system does exactly what you want.

  • create a .bat file to make sure it works on VM
  • create windows shortcut for batch file
  • drag a shortcut to the Mac desktop, folder, Dock, etc.
  • run batch file from Mac.

In consistency mode, virtual machine settings that allow you to run Windows Apps with Mac, Parallel tools installed

+1
source

Due to the way things are passed to prlctl exec, the commands must be executed with a double reduction, so this will be:

 prlctl exec {parallels_vm_name} "C:\\Scripts\\myScript.cmd" 
0
source

Source: https://habr.com/ru/post/1500965/


All Articles