VOGONS


First post, by BASED

User metadata
Rank Newbie
Rank
Newbie

I have a batch script(old-style DOS .bat) which runs some programs and exits. These programs write data to a file.
I don't need video output from them, and I want to run such script in background, from other (bash or php) scripts under Debian Linux.
Is there any way to disable Dosbox output, or to make it draw to a fake (virtual) device?

Reply 1 of 2, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

I am not sure of the details, but I assume that at least some of the output methods (e.g. opengl) uses standard X11 calls to update the screen. So provided that you can somehow create a fake X11-display, you should be able to start DOSBox with DISPLAY=fake:0 or something.

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 2 of 2, by BASED

User metadata
Rank Newbie
Rank
Newbie

Yes, that works!
I've found and installed Xfvb, which works as virtual X server(draws all picture only in memory).
After that it was easy.
Thanks a lot!