[Wine] Script to run Wine and save log

Austin English austinenglish at gmail.com
Wed Jun 24 17:22:32 CDT 2009

On Wed, Jun 24, 2009 at 5:18 PM, Martin Gregorie<martin at gregorie.org> wrote:
> On Wed, 2009-06-24 at 16:38 -0500, Austin English wrote:
>> uname is portable, and should work everywhere. What's *not* portable,
>> is, e.g., grepping uname for answers, e.g.,:
>> `uname -a` | grep Linux
>> Yes, I've seen this done. But what happens if you're on a *BSD box
>> with the hostname 'Linux_sucks'.
> I think this is portable:
>        uname -a |grep -i "^linux"

Will break like I said above...just use:
if [ "`uname -s`" = Linux ]

> Minor point: I think all unices have the Bourn Shell but not all have
> ksh, csh or bash, so the #!/bin/sh line is probably a good idea.



More information about the wine-users mailing list