View Single Post
  #1   (View Single Post)  
Old 24th November 2008
hamba hamba is offline
Fdisk Soldier
 
Join Date: Apr 2008
Posts: 71
Default auto restart an app within wine

Hi

I am trying to create a little script that will restart a wine app when it stopped running or was accidentally closed.

So far I have this
Code:
#!/usr/local/bin/bash
[ -z "`ps ax | grep Poker | grep -v grep`" ] && /usr/local/bin/wine ~/.wine/drive_c/Program\ Files/applications/application.exe
This works 50% in that when I that when I run it manually it starts the app the way it should and when its added to my crontab it starts the app but I can't see it.
I know the app is running because ps is showing me the same info as when manually starting the app.

Is there anyone that can shed some light on what I can try next to make this work?

Thanks
hamba
Reply With Quote