|
General software and network General OS-independent software and network questions, X11, MTA, routing, etc. |
|
Thread Tools | Display Modes |
|
|||
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 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 |
|
|||
never mind, just after I created this post I solved the problem
:-) |
|
|||
The solution was to add DISPLAY to the contab
Code:
> crontab -l DISPLAY=:0.0 */5 * * * * /usr/home/user/bla.sh |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wine: Your Experiences | ninjatux | Off-Topic | 10 | 4th June 2013 12:48 PM |
Auto-YES? | wubrgamer | FreeBSD Ports and Packages | 7 | 24th September 2008 01:58 PM |
Auto backup | cwhitmore | FreeBSD General | 6 | 19th August 2008 05:17 PM |
DSL auto login | Weaseal | FreeBSD General | 3 | 17th June 2008 03:26 PM |
Customizeable FTP auto-fetch script (OpenBSD snapshot download as example) | J65nko | Guides | 2 | 1st June 2008 03:29 AM |