I need to close nicely (i.e. just like pressing the x button on the window) a wine application (in this case uTorrent) from a script. I tried something like this:
kill -N `pgrep uTorrent.exe`
but no matter which signal number I use, it appears that the process is terminated badly. When it is restarted, uTorrent checks the started torrents, just like it does when it crashes. The same happens if I try ending wineserver (I couldn't do it anyway like this, because I have other wine processes running).
Is there a way to simulate a "clean" close from a script?
Thank you!
How to close nicely a wine application from script
Re: How to close nicely a wine application from script
anto12358 wrote:I need to close nicely (i.e. just like pressing the x button on the window) a wine application (in this case uTorrent) from a script.
Code: Select all
wineboot -e
Re: How to close nicely a wine application from script
I don't see how I can use this to close a single Wine application without affecting the others too.vitamin wrote:Code: Select all
wineboot -e
Re: How to close nicely a wine application from script
You can't. Put them into separate wineprefixes.anto12358 wrote:I don't see how I can use this to close a single Wine application without affecting the others too.
I've found an easier way: use a Windows task kill application like taskkill.exe (shipped with Windows XP) or this:
http://technet.microsoft.com/en-us/sysi ... s/bb896683
http://technet.microsoft.com/en-us/sysi ... s/bb896683