Re: [Wine]How to auto-restart win32 app

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Matthew,

You could use a cron job to check its status and restart if necessary, or
use an expect script like the one below.  I don't know much about expect,
but this should do what you want.  Just put in the name of the exe file.

- Walter

==============================================================
#!/usr/bin/expect -f

set EXEFILE "/home/reuben/c/Program\ Files/aloha/Aloha.exe"

spawn winelauncher $EXEFILE

while {1} {
    expect "Wine-dbg>$" {
        send "quit\n"
        spawn winelauncher $EXEFILE
    }
}
==============================================================

On Sat, 6 Nov 2004, Matthew L Reed wrote:

> I have a win32 app that I run 24/7. On occasion it will go into the
> debugger, and I have to kill it and restart it. Is there any to have it
> automatically restart when it crashes?
>
> _______________________________________________
> wine-users mailing list
> wine-users@xxxxxxxxxx
> http://www.winehq.org/mailman/listinfo/wine-users
>
_______________________________________________
wine-users mailing list
wine-users@xxxxxxxxxx
http://www.winehq.org/mailman/listinfo/wine-users

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux