How to I dump wine trash in a bash script?

Questions about Wine on Linux
Locked
ToddAndMargo2
Level 3
Level 3
Posts: 98
Joined: Thu Aug 21, 2014 6:40 pm

How to I dump wine trash in a bash script?

Post by ToddAndMargo2 »

Hi All,

Wine 1.7.42

I am doing this in a bash script:

OldRev="$(wine /home/linuxutil/filever.exe "${OldFileName}" | awk '{print $5}')"

Which looks like this from "set -x"
+++ wine /home/linuxutil/filever.exe kes10winsp1_en_aes56-10.2.2.10535.exe
+++ awk '{print $5}'

It works, but my terminal windows gets filled with trash from Wine. A lot of trash. For instance:
fixme:service:scmdatabase_autostart_services Auto-start service L"A2DDA" failed to start: 2

How do I rid myself of this trash? In my bash code line above, how do I redirect all this Wine trash to /dev/null? Is there a "--quiet" option for the Wine command line?

Many thanks,
-T
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: How to I dump wine trash in a bash script?

Post by dimesio »

ToddAndMargo2 wrote: Is there a "--quiet" option for the Wine command line?
WINEDEBUG=-all
ToddAndMargo2
Level 3
Level 3
Posts: 98
Joined: Thu Aug 21, 2014 6:40 pm

[Solved] Re: How to I dump wine trash in a bash script?

Post by ToddAndMargo2 »

dimesio wrote:
ToddAndMargo2 wrote: Is there a "--quiet" option for the Wine command line?
WINEDEBUG=-all
That did the trick. Thank you!

$ WINEDEBUG=-all wine /home/linuxutil/filever.exe kes10winsp1_en_aes56-10.2.2.10535.exe | awk '{print $5}'
10.2.2.10535
Locked