List Info

Thread: kppp and cron




kppp and cron
user name
2006-12-11 22:30:28
> 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.

The xhost command needs to be executed from within the X
session.

Cheers,
Kevin

Thanks Kevin, but point is I'm not executing this script
from within an X  
session but rather from root's cron.
In fact, I don't even care if X is running but obviously
kppp does and  
hence that seems to be my problem.

I really just wanted to be able to run "kppp -c
PPP_ACCOUNT" automatically  
without having to deal with any X issues.

-- 
Marc.
___________________________________________________
This message is from the kde-linux mailing list.
Account management:  http
s://mail.kde.org/mailman/listinfo/kde-linux.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.h
tml.
kppp and cron
user name
2006-12-12 05:08:29
On Tuesday 12 December 2006 11:30 am, Marc Rosenthal wrote:
> Thanks Kevin, but point is I'm not executing this
script from within an X
> session but rather from root's cron.
> In fact, I don't even care if X is running but
obviously kppp does and
> hence that seems to be my problem.
>
> I really just wanted to be able to run "kppp -c
PPP_ACCOUNT" automatically
> without having to deal with any X issues.
I haven't used ppp recently, but if you want to connect from
a cron script 
perhaps you should not be using kppp?

It might be useful to have a look at pon, pppd and perhaps
pppconfig.

-- 
Andrew Walbran
website: http://q.geek.nz/
blog: http://qwandor.wordpres
s.com/
ISPfind (find the best NZ broadband plan): http://ispfind.co.nz/
___________________________________________________
This message is from the kde-linux mailing list.
Account management:  http
s://mail.kde.org/mailman/listinfo/kde-linux.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.h
tml.
kppp and cron
user name
2006-12-12 12:03:20
On Monday 11 December 2006 23:30, Marc Rosenthal wrote:
> Thanks Kevin, but point is I'm not executing this
script from within an X
> session but rather from root's cron.

Yes, I understood that, but the xhost command needs to be
executed in the X 
session it should modify. The other commands don't matter.

> In fact, I don't even care if X is running but
obviously kppp does and
> hence that seems to be my problem.

I agree with Andrew: you should be looking into a non-GUI
solution.
Additionally to the ones Andrew listed, have a look at
wvdial.

Cheers,
Kevin

-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
___________________________________________________
This message is from the kde-linux mailing list.
Account management:  http
s://mail.kde.org/mailman/listinfo/kde-linux.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.h
tml.
kppp and cron
user name
2006-12-12 17:15:50
Am Dienstag, 12. Dezember 2006 13:03 schrieb Kevin Krammer:
> Additionally to the ones Andrew listed, have a look at
wvdial.

I can second that - wvdial is great, easy to configure, very
reliable.
I used it back in the times when I was still on modem
dial-up (shrug :-/ ).

werner
___________________________________________________
This message is from the kde-linux mailing list.
Account management:  http
s://mail.kde.org/mailman/listinfo/kde-linux.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.h
tml.
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )