I am considering to replace my Windows pc with Mac mini, what would be MacOS version of tool command to launch winbox?
In windows it is: “C:\WinBox4.exe” “[Device.FirstAddress]” “[Device.UserName]” “[Device.Password]”
I am considering to replace my Windows pc with Mac mini, what would be MacOS version of tool command to launch winbox?
In windows it is: “C:\WinBox4.exe” “[Device.FirstAddress]” “[Device.UserName]” “[Device.Password]”
open -a WinBox --args "[Device.FirstAddress]" "[Device.UserName]" "[Device.Password]"
This command works in terminal if passing correct ip address and credentials, hovever when trying to launch from The Dude (running in Wine), I am getting the error:
Execute failed ( command: open -a WinBox --args “IP of the device” “username” “password”): 6:Invalid handle.
Wine is not only a sandboxed environment, it isn’t macOS, rather on purpose. It can’t launch any macOS program directly.
The only alternative I can think of is to develop a web service that The Dude can poke to accomplish the same end. An HTTP call to “GET /api/run/winbox/for/me/please” kind of thing.
I use Dude on macOS/intel, so it works. I use homebrew to get wine & just use CLI to launch Dude… but you can use Automator to make it an “app”. The Dude auto-upgrade that matches the version even works.
Since it’s emulating Windows – the path needs to be valid Windows path… And UNIX /usr/bin/open is not a Windows path… I think Z: is map to the local macOS file system, or at least it has been for me. So this work to launch the native WinBox4 as Dude “Tool”:
z:\usr\bin\open -a WinBox --args "[Device.FirstAddress]" "[Device.UserName]" "[Device.Password]"
I can confirm that it works on Apple Silicon as well. I just added -n atribute to launch new window if there is one winbox session already open.
z:\usr\bin\open -a WinBox -n --args "[Device.FirstAddress]" "[Device.UserName]" "[Device.Password]"