[kde-linux] kppp and cron

Marc Rosenthal Marc.Rosenthal at ec.gc.ca
Sat Dec 9 00:41:29 UTC 2006


I'd like to know if it's possible to run kppp from within a user's  
(preferably root's) cron.

I've tried setting up a script in root's cron which checks for a kppp  
session, and if one doesn't exist then start it...something like:

*/15 * * * * /root/start_kppp

The script works fine (when run from the command line), but when it's run  
 from cron and it tries to execute the "kppp -c PPP_ACCOUNT" it fails due  
to problems with the Xserver.

Here are some of the errors I get:

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
kppp: cannot connect to X server :0

I've even tried using "xhost +" command from within the script but nothing  
seems to work.

Am I trying to do something impossible here?

Marc Rosenthal   marc.rosenthal at ec.gc.ca

More information about the kde-linux mailing list