Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

problem running wine as cron job

136 views
Skip to first unread message

Marcel A.J. van Velzen

unread,
Nov 3, 2007, 6:35:41 AM11/3/07
to
Hi,

I have a problem running a shell script, including a wine statement, as cron
job. The shell script from the terminal console works fine, but as a cron
job the error message 'Application tried to create a window' is given. The
Window program unfortunately pops up several screens, which I cannot turn
off.

I am using wine 0.9.44 (also version 0.9.48-13.1 didn't solve it), Suse
Linux 10.3. I tried two approaches; xhost (this is still not working) and
vncserver (this resulted in another error caused by the Windows program).

I hope someone can help me.

Thanks in advance,

Marcel

crontab(-e):
26 * * * * xhost +;export DISPLAY=:0; export
IRETRIEVER_HOME=/usr/local/share/iretriever-3.1.15; /usr/local/share/iretriever-3.1.15/bin/eurobench.sh
> /usr/local/share/iretriever-3.1.15/log/eurobench.log 2>&1; xhost -

eurobench.sh:
#!/bin/bash
#
#

if [ "$IRETRIEVER_HOME" = "" ]; then
        echo ERROR: Set IRETRIEVER_HOME before running this script
        exit 1
fi

wine $IRETRIEVER_HOME/fqrt.exe $IRETRIEVER_HOME/bin/fqrt.tsk

eurobench.log:
No protocol specified
err:imagelist:ImageList_ReplaceIcon no color!
err:imagelist:ImageList_ReplaceIcon no color!
err:imagelist:ImageList_ReplaceIcon no color!
err:imagelist:ImageList_ReplaceIcon no color!
No protocol specified
No protocol specified
No protocol specified
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.

J.O. Aho

unread,
Nov 3, 2007, 6:41:51 AM11/3/07
to
Marcel A.J. van Velzen wrote:
> Hi,
>
> I have a problem running a shell script, including a wine statement, as cron
> job. The shell script from the terminal console works fine, but as a cron
> job the error message 'Application tried to create a window' is given. The
> Window program unfortunately pops up several screens, which I cannot turn
> off.

If you want to use wine in cron, then you better use a microsoft program that
don't open windows. The cron user do not have a running X11 environment.


> 26 * * * * xhost +;export DISPLAY=:0; export
> IRETRIEVER_HOME=/usr/local/share/iretriever-3.1.15; /usr/local/share/iretriever-3.1.15/bin/eurobench.sh
>> /usr/local/share/iretriever-3.1.15/log/eurobench.log 2>&1; xhost -

xhost has to be run by the user who owns the X11 session, run by anyone else,
the rule won't affect anything.

--

//Aho

0 new messages