[Wine]How to auto-restart win32 app

Walt Ogburn reuben at ugcs.caltech.edu
Sun Nov 7 20:37:14 CST 2004

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 at winehq.org
> http://www.winehq.org/mailman/listinfo/wine-users

More information about the wine-users mailing list