Dear visitor, welcome to KDE-Forum.org.
If this is your first visit here, please read the Help. It explains in detail how this page works.
To use all features of this page, you should consider registering.
Please use the registration form, to register here or read more information about the registration process.
If you are already registered, please login here.
DCOP and cron
I'm trying to set kopete message via cron, with such script:
|
Source code
|
1
2
3
|
#! /bin/bash
/opt/kde3/bin/dcop kopete KopeteIface setAway "Test"
|
after I enter script path into kcron new task and try if it works (run now), works perfectly, however this doesn't happens when it should do this automatically:
|
Source code
|
1
2
3
4
5
6
7
8
9
10
|
Subject: Cron <kriko@linux> /home/kriko/bin/Kopeteaway.sh
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/home/kriko>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=kriko>
X-Cron-Env: <USER=kriko>
Message-Id: <20070509231501.B43B12B9DC7@linux.site>
Date: Thu, 10 May 2007 01:15:01 +0200 (CEST)
ERROR: Couldn't attach to DCOP server!
|
I added a new variable:
DISPLAY
with value:
:0
and now works.