Schedule a windows package in WINE using cron

Questions about Wine on Linux
Post Reply
lexluthor
Newbie
Newbie
Posts: 1
Joined: Mon Sep 16, 2019 6:11 pm

Schedule a windows package in WINE using cron

Post by lexluthor » Sun Nov 17, 2019 6:42 am

Dear all, I use a vendor provided windows-based data update package. It only runs under windows and now WINE/ubuntu 18.04 LTS :D . So far so good. The software pops up a browser like windows, requires the Update button to be clicked to start, however there are some command line switches that avoid this need and using a single command line it all runs from within a single terminal in an XFCE session.

I now need to schedule this to run twice daily ... this originally seemed to be the easy part. Whilst the software runs fine under xfce+terminal, it obviously need an x environment when instatiated under cron. Is this possible? If so, what is the cleanest way to achieve this? (the software runs in an ubuntu AWS server).

Thanks in advance,

wine start C:\\Applications\\bin\\Updater.exe auto=1 selfclose=1
0009:fixme:exec:SHELL_execute flags ignored: 0x00000100
ubuntu@ip-172-31-4-120:~$ 002b:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
002b:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
wine: Unhandled exception 0x0eedfade in thread 2b at address 0x0000:0x7b43e06c (thread 002b), starting debugger...
002d:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
002d:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.

Post Reply