Re: Keep wine resident
Liam Proven <[email protected]> Mon, 29 Feb 2016 19:20:06 +0100
| Newsgroups | gmane.comp.emulators.wine.user |
|---|---|
| Message-ID | <CAMTenCFy3x_cD90C3Vchpf_ZGt5U-3u10QEOR_wY1af++RUCyw@mail.gmail.com> |
On 28 February 2016 at 21:01, Seth Hill <[email protected]> wrote: > Hello all, > > Is there a way to instruct wine to stick around after a program has run? = Alternatively, is there a way to =E2=80=9Cboot=E2=80=9D a wine prefix and k= eep it running? > > As part of a project to port some windows software to linux, I am using w= ine to run a windows-only command line utility in a loop. Running it via wi= ne it works just fine, however, calling it in a loop is extremely slow. > > It seems that the wine =E2=80=9Cboots=E2=80=9D when the program is called= , then shuts down immediately after. This takes a few seconds every time th= e program is called. Unfortunately I need to call this program many thousan= ds of times, so those extra seconds add up to hours. > > I=E2=80=99ve discovered that if I run a wine GUI application before runni= ng the program (such as winecfg, notepad, etc.) beforehand, the startup tim= e is eliminated. That solution is a bit awkward, as this program is being r= un in a cluster computing environment (on dozens of headless nodes). > > The ideal solution would be a command line switch to wine or a service th= at could be run when the node boots. I did try wineserver -p, but that had = no effect on startup time (I=E2=80=99m not sure what wine server does). > > Any thoughts? WINE is not a VM. It doesn't boot as such. It's an API translator. But yes, it has to load. All programs do. Multiple apps can share a single instance, though. Perhaps a background command-line task doing nothing very important -- such as a heartbeat indicator of some form, such as a task that periodically adds a line to a logfile -- might achieve what you want. --=20 Liam Proven =E2=80=A2 Profile: http://lproven.livejournal.com/profile Email: [email protected] =E2=80=A2 GMail/G+/Twitter/Flickr/Facebook: lprove= n MSN: [email protected] =E2=80=A2 Skype/AIM/Yahoo/LinkedIn: liamproven Cell/Mobiles: +44 7939-087884 (UK) =E2=80=A2 +420 702 829 053 (=C4=8CR)