You are not logged in.

kriko

Trainee

  • "kriko" started this thread

Posts: 127

Location: Slovenia

  • Send private message

1

Thursday, May 10th 2007, 12:23am

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!

kriko

Trainee

  • "kriko" started this thread

Posts: 127

Location: Slovenia

  • Send private message

2

Thursday, May 10th 2007, 12:56am

I added a new variable:
DISPLAY
with value:
:0

and now works.