Calling Linux App

Questions about Wine on Linux
Locked
sprytel
Newbie
Newbie
Posts: 1
Joined: Wed Jun 14, 2017 8:03 pm

Calling Linux App

Post by sprytel »

I'm trying to invoke a native Linux application from a Windows UltraEdit running in Wine 2.0.1... although I have also been trying to get this to work from cmd.exe directly... to no avail.

The FAQ and this recent thread (viewtopic.php?f=8&t=28655) lead me to believe it is possible. However, when I try it I get this:

$ wine cmd /c /usr/bin/gedit
wine: Bad EXE format for Z:\usr\bin\gedit..
Can't recognize '/usr/bin/gedit' as an internal or external command, or batch script.

As specified in the FAQ, my registry setting for HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment\PATHEXT is as follows:
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.

I am running Ubuntu 17.04 64-bit, if that helps. Thanks!
THN
Level 2
Level 2
Posts: 20
Joined: Tue May 31, 2016 2:24 pm

Re: Calling Linux App

Post by THN »

Hi

you forgot start /unix in your command; the correct syntax would be
$ wine cmd /c start /unix /usr/bin/gedit
However it seems that while you can well run unix shell scripts this way, it does not work for any unix programs or commands. I always receive
Wrong EXE format (which is logical)
And/or
No application associated with the give file (although my PATHEXT well contains the dot at the end)

Hope it helps.

Best

THN
Locked