Community discussions

MikroTik App
 
whizzyinternet
just joined
Topic Author
Posts: 3
Joined: Wed Jun 04, 2025 10:05 pm

The Dude Tools->Winbox on MacOS

Wed Jun 04, 2025 10:13 pm

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]"
 
User avatar
tangent
Forum Guru
Forum Guru
Posts: 1724
Joined: Thu Jul 01, 2021 3:15 pm
Contact:

Re: The Dude Tools->Winbox on MacOS

Thu Jun 05, 2025 2:59 am

open -a WinBox --args "[Device.FirstAddress]" "[Device.UserName]" "[Device.Password]"
 
whizzyinternet
just joined
Topic Author
Posts: 3
Joined: Wed Jun 04, 2025 10:05 pm

Re: The Dude Tools->Winbox on MacOS

Fri Jun 06, 2025 5:27 pm

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.
 
User avatar
tangent
Forum Guru
Forum Guru
Posts: 1724
Joined: Thu Jul 01, 2021 3:15 pm
Contact:

Re: The Dude Tools->Winbox on MacOS

Fri Jun 06, 2025 6:22 pm

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.
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 4962
Joined: Sun May 01, 2016 7:12 pm
Location: California
Contact:

Re: The Dude Tools->Winbox on MacOS

Fri Jun 06, 2025 7:56 pm

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]"
 
whizzyinternet
just joined
Topic Author
Posts: 3
Joined: Wed Jun 04, 2025 10:05 pm

Re: The Dude Tools->Winbox on MacOS

Sun Jun 08, 2025 1:47 pm

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]"