Run VFP 6.0 batch program on headless Linux

Questions about Wine on Linux
Locked
pmoleri
Newbie
Newbie
Posts: 2
Joined: Fri Mar 28, 2014 6:02 pm

Run VFP 6.0 batch program on headless Linux

Post by pmoleri »

I have an Ubuntu 12.04 server (headless).

I'm trying to execute a VFP 6.0 batch program but I receive this error:

Code: Select all

Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
The VFP program is trying to create a Window, although it doesn't need it.
Is there any way to make wine ignore all gui commands?
If it isn't, is there any lightweight package that enables wine to make the gui calls and avoid the errors?

Thanks in advance
pmoleri
Newbie
Newbie
Posts: 2
Joined: Fri Mar 28, 2014 6:02 pm

Re: Run VFP 6.0 batch program on headless Linux

Post by pmoleri »

I was able to execute the program installing xorg and fluxbox.
Then starting the program with:

Code: Select all

startx /usr/bin/wine ... -- :1
Capturing the output of the program was a bit more complicated. I had to use xterm, so:

Code: Select all

startx ./start_program.sh args -- :1
Then start_program.sh:

Code: Select all

#/bin/sh
xterm -l -lc program.out -e /usr/bin/wine program.exe $*
I'm not sure all this is necessary, but it solves my problem.
Locked