Am Mittwoch, 8. September 2004 13:25 schrieb Johannes Kastl:
wie erkläre ich denn dem Susewatcher, dass er bei der Einwahl (per modem) nach Updates schauen soll? Da ich nicht immer im netz bin, ist die "automatisch schauen Funktion" da nicht so hilfreich.
Wieso nicht? Nimm ein --------------------------------- schnipp -------------------------- run_on_xserver() { # this is ugly. local DUMMY XUSER DISP read DUMMY XUSER DISP DUMMY < <(wttyhx -v) su $XUSER -c "DISPLAY=$DISP $1" } run_on_xserver "export DISPLAY=:0.0;/opt/kde3/bin/dcop susewatcher watcher dialUpStarted" --------------------------------- schnapp -------------------------- in die /etc/ppp/ip-up.local und ein --------------------------------- schnipp -------------------------- run_on_xserver() { # this is ugly. local DUMMY XUSER DISP read DUMMY XUSER DISP DUMMY < <(wttyhx -v) su $XUSER -c "DISPLAY=$DISP $1" } run_on_xserver "export DISPLAY=:0.0;/opt/kde3/bin/dcop susewatcher watcher dialUpStopped" --------------------------------- schnapp -------------------------- in die /etc/ppp/ip-down.local Dann sollte nur geschaut werden, während Du online bist. -- Machs gut | http://www.iivs.de/schwinde/buerger/tremmel/ | http://packman.links2linux.de/ Manfred | http://www.knightsoft-net.de