Wine doesn't run app from a cron

Questions about Wine on Linux
Locked
demontager
Level 2
Level 2
Posts: 27
Joined: Thu Nov 13, 2008 2:09 pm

Wine doesn't run app from a cron

Post by demontager »

I need to run sound application Aura.exe http://www.umopit.ru/AuraEng.htm using cron schedule. If app started from an icon, or from terminal it runs fine, the problem actually appears when it invoked from bash shell script in cron

Code: Select all

*/10 * * * * /home/dem/scripts/raw/aura.sh 2>&1 >> /home/dem/aura_error.txt
aura.sh

Code: Select all

#!/bin/bash
# Stopping/starting Aura.exe
PROC="C:\Program Files (x86)\Aura\Aura.exe"
PID=`pidof Aura.exe`
if [ -n "$PID" ]; then
kill $PID
wine "$PROC"
else
  wine "$PROC"
fi
exit 0

Script runs and Aura.exe started when script run in terminal.

Code: Select all

./aura.sh
And following error appeared when called from cron:

Code: Select all

Process of pid=0042 has terminated
No process loaded, cannot execute 'echo Modules:'
Cannot get info on module while no process is loaded
No process loaded, cannot execute 'echo Threads:'
process  tid      prio (all id:s are in hex)
0000000e services.exe
	0000001e    0
	0000001d    0
	00000014    0
	00000010    0
	0000000f    0
00000012 winedevice.exe
	0000001c    0
	00000019    0
	00000017    0
	00000013    0
0000001a plugplay.exe
	00000020    0
	0000001f    0
	0000001b    0
00000021 explorer.exe
	00000022    0
winedbg: Internal crash at 0x7ebf141a

I'am using my user cron not root of course, guess all permissions should be fine.
Locked