[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Ktorrent lancé par un script



Bonjour,

J'utilise ktorrent et j'aimerais pourvoir le relancer automatiquement lorsqu'il plante.

J'ai donc fait un tout petit script:
__________________
#!/bin/bash
ps x|grep ktorrent > /home/pascal/tmp/process
if grep "/usr/bin/ktorrent" /home/pascal/tmp/process ; then
        echo ""
        else
                `/usr/bin/ktorrent`
fi
---------------------------

que je lance toutes les 15 minutes.

Si j'exécute ce script à la main, pas de soucis, ktorrent se relance.

Par contre, lorsqu'il est exécuté par cron j'obtiens ce massage d'erreur dans les logs:

<unknown program name>(26029)/: KUniqueApplication: Cannot find the D-Bus session server:  "/usr/bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.

Y a t-il un moyen pour résoudre ce problème d'accès au serveur x par D-Bus ?

Merci d'avance ?

Pascal


Reply to: