VOGONS

Common searches


First post, by jsuwinski

User metadata
Rank Newbie
Rank
Newbie

Is it possible to run a Winows .exe command that doesn't use any graphics from a Linux command line or shell script?

Inquiring minds would like to know.

Thanks, The Late Arthur Dent ...

Reply 4 of 7, by jsuwinski

User metadata
Rank Newbie
Rank
Newbie

What I would like to be able to do is at a shell prompt be able to type something like:

> /usr/bin/dosbox ~/bin/test.exe /args
>

As a single command that runs the .exe file then returns to the shell ...

Reply 5 of 7, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

dosbox doesn't run windows exes.
and a virtual X server should work. Think harekiet runs his mircstats this way (but that is with wine and a virtual x server)

DOSBox wants an X server. running games without a display is pretty useless and DOSBox it's functionality is targeted at games.

Water flows down the stream
How to ask questions the smart way!

Reply 6 of 7, by dougdahl

User metadata
Rank Member
Rank
Member

You might want to consider carefully whether you want to run dos apps, or windows apps on Linux. There is a bit of difference.

If you just want dos apps, dosemu(not xdosemu!) will run from a console without X.
http://dosemu.sourceforge.net/
It's been a long time since I've used it, so I can't say much about it. Depending upon what you want to do, it is a lot more tricky to set up than dosbox.
Looking at the man page, there is an argument "-dumb" that might do what you want, but beyond that I'm not sure I can say anything else.

If you want to run Windows apps on Linux using Wine, I have heard about a way of it not requiring a X server years ago, but I think it's been removed from wine for a very long time. At least three or four years. It used to involve something called ttydrv, but has been apparently replaced with some sort of "null display driver".
As far as I can tell, if the app doesn't need any graphics, it won't need the X server, but if it does, then you will need to have an X server.
But I don't think you can change wine's behavior much. I do not think that you can set up wine so that it will not require graphics for a program that requires graphics.

Reply 7 of 7, by Dr. Riptide

User metadata
Rank Newbie
Rank
Newbie

You can run Windows console applications from Wine by using the wineconsole command from any shell. So you would use:

> wineconsole ~/bin/test.exe /args

This command does not require an X server running (it uses ncurses for all output), but you will likely have real problems getting Wine installed if you do not have X installed. See the manual for more information.

Intel Q6600 (2.4 GHz) | 4GB RAM | GeForce 8800 GT | Windows 7 64-bit