Quantcast
Channel: openSUSE Forums
Viewing all articles
Browse latest Browse all 40713

Commands not working in crontab

$
0
0
I have the following two lines in my crontab:
Quote:

0 5 * * 1-5 DISPLAY=:0 amarok -p
45 6 * * 1-5 DISPLAY=:0 qdbus org.ktorrent.ktorrent /core org.ktorrent.core.setSuspended false > /dev/null
Both commands work when I enter them in the terminal (with the "DISPLAY=:0" part removed). None or the commands work from crontab. The first one (amarok) gives the following mailed to me:
Quote:

unnamed app(9705): KUniqueApplication: Cannot find the D-Bus session server: "/bin/dbus-launch terminated abnormally with the following error: No protocol specified
Autolaunch error: X11 initialization failed.
"

unnamed app(9685): KUniqueApplication: Pipe closed unexpectedly.
The second one (ktorrent) gives this:
Quote:

Could not connect to D-Bus server: org.freedesktop.DBus.Error.Spawn.ExecFailed: /bin/dbus-launch terminated abnormally with the following error: No protocol specified
Autolaunch error: X11 initialization failed.

Viewing all articles
Browse latest Browse all 40713

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>