Aktuelles
Digital Eliteboard - Das Digitale Technik Forum

Registriere dich noch heute kostenlos, um Mitglied zu werden! Sobald du angemeldet bist, kannst du auf unserer Seite aktiv teilnehmen, indem du deine eigenen Themen und Beiträge erstellst und dich über deinen eigenen Posteingang mit anderen Mitgliedern unterhalten kannst! Zudem bekommst du Zutritt zu Bereichen, welche für Gäste verwehrt bleiben

Registriere dich noch heute kostenlos, um Mitglied zu werden! Sobald du angemeldet bist, kannst du auf unserer Seite aktiv teilnehmen, indem du deine eigenen Themen und Beiträge erstellst und dich über deinen eigenen Posteingang mit anderen Mitgliedern unterhalten kannst! Zudem bekommst du Zutritt zu Bereichen, welche für Gäste verwehrt bleiben

( gelöst ) ddnsupdater funnktioniert nach IPC Update nicht mehr

    Nobody is reading this thread right now.
Hi,
ich würde mir an deiner Stelle über "i os" das Script noch mal neu installieren.
Dann sollten die "ddns"-Befehle auch wieder funktionieren, nachdem du die DDNSupdater.sh angepasst hast.
"ddns auto" sollte dann auch deine IP wieder automatisch updaten.
Beim Pi ggf. mit sudo davor, wie @Alex schon schrieb.
 
Habs jetzt eingetragen.......funktioniert aber nicht.

Du musst Regestriert sein, um das angehängte Bild zusehen.
 

Anhänge

Du musst angemeldet sein, um die Anhangsliste zu sehen.
Rechte waren auf 664 habs geändert auf 755

Wie ging das von Hand ausführen nochmal ?
 
also ein Fehler hab ich schonmal gefunden: im original script von ip-check ist der DDNSupdater2.sh eingetragen.

Hab die 2 mal gelöscht aber nach Neustart Fritz wird nicht aktualisiert. Manuell gehts aber.
 
Das ist ja per se kein Fehler. Ich nutze z.B. DDNSupdater2, weil ich mehrere DynDNS hab.
Schau doch mal ins Syslog (i syslog) ob der Cron generell ausgeführt wird
 
syslog:

Du musst Regestriert sein, um das angehängte Bild zusehen.



hab auch mit chmod versucht sie ausführbar zu machen (falls das so richtig ist)

Du musst Regestriert sein, um das angehängte Bild zusehen.
 

Anhänge

Du musst angemeldet sein, um die Anhangsliste zu sehen.
Der Crontjob wird gar nicht ausgeführt, da muss generell was krumm sein.
So sieht das bei mir aus:
Code:
Apr 26 18:10:01 localhost CRON[30046]: (root) CMD (/var/emu/script/ip-check.sh)
Apr 26 18:10:01 localhost CRON[30047]: (root) CMD (/var/emu/script/oscam-watchdog.sh  #OScam - Teste ob OScam laeuft (jede Minute))
Apr 26 18:10:01 localhost CRON[30049]: (root) CMD (/var/emu/script/apache2-watchdog.sh >/dev/null 2>&1)
 
da muss generell was krumm sein
seh ich auch so. Vertseh allerdings nicht was passiert ist. Ich hab wirklich nur das IPC Update und o compile gemacht und das ging problemlos.
Diese configs werden wohl auch nicht beim configbackup mit gesichert denn das hatte ich auch schon zurückgespielt.
Da werde ich wohl mal das fullbackup einspielen und nur oscam aktualisieren oder hast Du noch eine andere Idee ?

Die ip-check.sh ist btw. kein offizieller Bestandteil von IPC

Wäre aber cool wenn das so wäre.
 
Deon Confis sollten bei einem Update mitgesichet werden. Schau mal unter /var/backups/ipc. Müsste dann forsetup_DATUM heißen.
Grundsätzlich ist bei dir wohl nur was in /etc/crontab faul. Vielleicht am Ende nicht dieLeerzeile, oder oder oder
Eigentlich spollte DDNupdater2.sh das von ip-check.sh schon können, aber bei mir hat das nie so richtig gefunzt, deshalb hab ich mir dann selbst was gebaut
 
Hi,

ich habe neben IPC "ddclient" laufen mit no-ip.

Vielleicht ist das was für Dich?

Gruß

Gesendet von meinem Xiaomi POCOPHONE F1 mit Tapatalk
 
Danke für Eure Hilfe. Aber da ist vermutlich beim configbackup aber so richtig was schief gelaufen obwohl ich bei der Auswahl alles angegeben habe.
Unter etc fehlt sogar die komplette crontab Datei !!!

Also doch fullbackup. Werde danach wieder feedback geben.
 
Ich bin zwar schon ein ganzes Stück weiter gekommen (dauert als Laie etwas länger) aber die IP wird nicht
automatisch aktualisiert.
Mit /sbin/ddns now funktioniert es.

Kann bitte jemand die aktuellen configs und Ausgaben checken ?

Code:
#!/bin/bash
#
# DynamicDNSupdater - supports: DynDNS.org, NO-IP.com, DYNServ.ca and IPActive.de
#
# Es koennen auch verschiedene Dienste genutzt werden um mehrere DNS-Hosts zu nutzen...
#
# Sonderzeichen im Password werden nun auch supported (danke IDDQD)
#
# credits: Didge2002, SnowHead, r00t, rj.2001, IDDQD
#
### CONFIG - START

# Zugangsdaten...
# es koennen mehrere accounts geupdated werden... (rest auskommentieren)
USERNAME["1"]="mein benutzer"    # DDNS Benutzername1
PASSWORD["1"]="mein passwort"    # DDNS Passwort1
DDNSHOST["1"]="meine dns"    # DDNS Hostname1

#USERNAME["2"]="benutzer2"    # DDNS Benutzername2
#PASSWORD["2"]="password2"    # DDNS Passwort2
#DDNSHOST["2"]="host2.zapto.org"    # DDNS Hostname2

#USERNAME["3"]="benutzer3"    # DDNS Benutzername3
#PASSWORD["3"]="password3"    # DDNS Passwort3
#DDNSHOST["3"]="host3.dyndns.org"    # DDNS Hostname3
#

# Provider URL's - pro DDNSHOST muss wie oben ein dazu passendes URL["<zahl>"] angelegt werden!
# (beliebig erweiterbar)
#
# $USERNAME , $PASSWORD , $DDNSHOST werden innerhalb der URL mit %USER% , %PASS% , %HOST% angegeben!
#
URL["1"]="http://dynupdate.no-ip.com/dns?username=%USER%&password=%PASS%&hostname=%HOST%"
#URL["2"]="http://dynupdate.no-ip.com/dns?username=%USER%&password=%PASS%&hostname=%HOST%"
#URL["3"]="http://%USER%:%PASS%@members.dyndns.org/nic/update?hostname=%HOST%"
#
# BEISPIEL URL's
#
# DynDNS.org:        "http://%USER%:%PASS%@members.dyndns.org/nic/update?hostname=%HOST%"
# No-IP.com:        "http://dynupdate.no-ip.com/dns?username=%USER%&password=%PASS%&hostname=%HOST%"
# DYNServ.ca:        "http://dynserv.ca/dyn/dynengine.cgi?name=%USER%&pass=%PASS%&func=set&domain=%HOST%"
# IPActive.de:    "http://logon.ipactive.de/cgi-bin/logon_off.pl?V=2.1&B=%USER%&P=%PASS%&IP=%HOST%&F=1"
# two-dns.de:   "http://%USER%:%PASS%@update.two-dns.de/update?hostname=%HOST%"

EVERY="300"        # Zeit in Sekunden zwischen den Abfragen
LOG="1"            # Erstelle Logfile vom update? [0=nein; 1=ja]

# Verschicke EMail bei Problemen? [no=nein; yes=ja]
# ( benoetigt: apt-get install sendEmail )
EMAIL="no"
EMAILFROM="`hostname`@fqdn.net"
EMAILTO='admin@fqdn.net'
EMAILSERVER='mail.fqdn.net'
EMAILUSER=''
EMAILPASS=''


### CONFIG - END

# -------------------------------------------------------------- #
# >>> >> >  DO NOT MESS WiTH ANYTHiNG BELOW THiS LiNE!  < << <<< #
# -------------------------------------------------------------- #


# required system cmd's:
# basename cat cut date echo expr killall ping rm sed sleep wget 

Osrcn="DDNSupdater2.sh"
srcn=$(basename $0)
srcv="2.251"
srccfg="config.$Osrcn"
LOGFILE="/var/log/log.$Osrcn"
CHKFILE="/tmp/.$Osrcn"
PiDFILE="/tmp/.pid.$Osrcn"
OnlinePing="google.de"
ProfileSwitchSleep=2
IPCcfgdir="/var/emu/conf"
IPCfunctions="/var/emu/script/functions.sh"
IPCddnssrc="/var/emu/script/$Osrcn"
IPCddnslinkname="ddns"

C="\033[";Ca="${C}0;33m";Cb="${C}1;33m";Cn="${C}0m";ROT="${C}1;31m";GRUEN="${C}1;32m";BOLD="${C}1;37m"
Bo="${C}1m";Bc="${C}21m"; Ro="${C}3m";Rc="${C}23m"; Uo="${C}4m";Uc="${C}24m"
Blo="${C}5m";Blc="${C}25m"; Io="${C}7m";Ic="${C}27m"

## Return Codes
declare -A ReturnCodes
ReturnCodes["good"]="DNS hostname update successful."
ReturnCodes["nochg"]="IP address is current, no update performed."
ReturnCodes["nohost"]="Hostname supplied does not exist under specified account."
ReturnCodes["badauth"]="Invalid username password combination."
ReturnCodes["badagent"]="The user agent was not sent or HTTP method is not permitted (we recommend use of GET request method)."
ReturnCodes["!donator"]="An option available only to credited users (such as offline URL) was specified, but the user is not a credited user."
ReturnCodes["abuse"]="The hostname specified is blocked for update abuse."
ReturnCodes["911"]="A fatal error on our side such as a database outage. Retry the update no sooner 30 minutes."
ReturnCodes["notfqdn"]="The hostname specified is not a fully-qualified domain name (not in the form hostname.dyndns.org or domain.com)."
ReturnCodes["0"]="IP address is current, no update performed."
ReturnCodes["1"]="Update successful."
ReturnCodes["2"]="Hostname supplied does not exist under specified account."
ReturnCodes["3"]="Invalid password."
ReturnCodes["4"]="Invalid username."

function AddonInstalled () {
    [ -f "/var/emu/conf/addons.info" ] && echo "ok" > /tmp/.AddonInstalled_$(basename $0)
}

function remove_addon () {
    #onlinescript als addon entfernen
    if [ -f "/var/emu/conf/addons.info" ]; then
        Anum=$(sed -ne "/^$(basename $0).*/=" /var/emu/conf/addons.info)
        [ ! -z "$Anum" ] && sed -i -e "$Anum d" /var/emu/conf/addons.info
    fi
}

if [ -f "$IPCfunctions" -a ! -f "/sbin/$IPCddnslinkname" ]; then
    echo ".. $srcn v$srcv .."
    echo "Erstbenutzung dieses Scripts? IPC erkannt... kopiere Script $srcn..."
    cp -f $0 $IPCddnssrc ; chmod 755 $IPCddnssrc >/dev/null 2>&1
    echo -e "\nErstelle Symlink fuer ${Ro}$IPCddnslinkname${Rc} auf $IPCddnssrc"
    ln -sf $IPCddnssrc /sbin/$IPCddnslinkname
    echo -e "Nun muss noch der ${Ro}CONFIG${Rc} Abschnitt in dem Script $srcn angepasst werden!"
    sleep 3
    nano -R $IPCddnssrc
    #[ ! -f "$IPCcfgdir/$srccfg" ] && proc_Create_Script_CFG "$IPCcfgdir/$srccfg"
    echo -e "Fertig! Das Script kann kuenftig ueber den Befehl ${Ro}$IPCddnslinkname${Rc} ausgefuehrt werden"
    AddonInstalled
    $IPCddnssrc help
    exit
fi

# load script config?
[ -d "$IPCcfgdir" -a -f "$IPCcfgdir/$srccfg" ] && source $IPCcfgdir/$srccfg
[ ! -d "$IPCcfgdir" -a -f "$srccfg" ] && source $srccfg

# Verschicke EMail..
function send_EMail() {
    MESSAGE=$1
    SUBJECT="$Osrcn"
    if [ $EMAIL = "yes" -o $EMAIL = "1" ]; then
        echo "Verschicke EMail.."
        sendEmail -f $EMAILFROM -t $EMAILTO -u "$SUBJECT" -m "$MESSAGE" -s $EMAILSERVER -xu "$EMAILUSER" -xp "$EMAILPASS"
    fi
}

# Simple URL encoding
function proc_url_encode() {
    out=${1//%/%25}; out=${out//\{/%7B}; out=${out//\}/%7D}; out=${out//|/%7C};
    out=${out//\\/%5C}; out=${out//^/%5E}; out=${out//~/%7E}; out=${out//[/%5B};
    out=${out//]/%5D}; out=${out//\`/%60}; out=${out//#/%23}; out=${out//>/%3E};
    out=${out//\$/%24}; out=${out//&/%26}; out=${out//+/%2B}; out=${out//,/%2C};
    out=${out//\//%2F}; out=${out//:/%3A}; out=${out//;/%3B}; out=${out//=/%3B};
    out=${out//\?/%3F}; out=${out// /%20}; out=${out//</%3C};
    out=${out//\!/%21}; out=${out//\"/%22}; out=${out//\@/%40}; out=${out//\'/%27};
    out=${out//\(/%28}; out=${out//\)/%29}; out=${out//\*/%2A}; out=${out//\-/%2D};
    out=${out//\_/%5F}; out=${out//\./%2E}; out=${out//\€/%80};
    echo $out
}

function LOG_msg() {
    message=$1
    if [ $LOG = "1" ]; then
        _DT=$(date +"%d.%m.%Y %H:%M:%S")
        echo "$_DT: $message" >> $LOGFILE
    fi
}

function ReturnCode () {
    for index in ${!ReturnCodes[*]}; do
        [ "$index" == "$1" ] && echo "${ReturnCodes[$1]}" && break
    done
}

function abuse_check() {
    index=$1
    answer=$(cat ${CHKFILE}_answer_$index)
    MSG=""
    if [ "$answer" = "abuse" ]; then
        MSG="WARNING!! You abused the DNS update function! You must Unlock your hostname: ${DDNSHOST[$index]} !"
    fi
    [ "$answer" = "nohost" ] && MSG="ERROR: Unknown host ${DDNSHOST[$index]} !"
    [ "$answer" = "badauth" ] && MSG="ERROR: Bad auth! Check USERNAME and PASSWORD setting for ${DDNSHOST[$index]} !"
    if [ ! -z "$MSG" ]; then
        echo "$MSG"
        LOG_msg "$MSG"
        send_EMail "$MSG"
    fi
}

function get_IPs() {
    CURRENTIP=""
    # get current internet ip
    CURRENTIP=$(wget -q -O - http://myip.dnsomatic.com)
    if [ -z "$CURRENTIP" -o "$CURRENTIP" = " *" -o "$CURRENTIP" = "*1.0 *" ]; then
        CURRENTIP=$(wget -q -O - http://my.ip.fi)
    fi
    if [ -z "$CURRENTIP" -o "$CURRENTIP" = " *" -o "$CURRENTIP" = "*1.0 *" ]; then
        CURRENTIP=$(wget -q -O - http://www.myip.ch | grep "IP Address" | cut -d ' ' -f4 | sed -e 's/\$//g' -e 's/\\r//g')
    fi
    if [ -z "$CURRENTIP" -o "$CURRENTIP" = " *" -o "$CURRENTIP" = "*1.0 *" ]; then
        CURRENTIP=$(wget -q -O - http://www.ip-lookup.de | grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>')
    fi
    if [ -z "$CURRENTIP" -o "$CURRENTIP" = " *" -o "$CURRENTIP" = "*1.0 *" ]; then
        CURRENTIP=$(wget -q -O - http://checkip.dyndns.org | sed s/[^0-9.]//g)
    fi
    if [ -z "$CURRENTIP" -o "$CURRENTIP" = " *" -o "$CURRENTIP" = "*1.0 *" ]; then
        CURRENTIP=$(wget -q -O - http://checkip.two-dns.de | grep "IP Address" | cut -d ' ' -f4 | sed -e 's/\$//g' -e 's/\\r//g')
    fi
    if [ -z "$CURRENTIP" ]; then
        eRROR["0"]="Cant get current internet ip"
    else
        # get current dyndns ip
        for index in ${!DDNSHOST[*]}; do
            #DYNIP[$index]=$(nslookup ${DDNSHOST[$index]} | tail -n2 | grep A | sed s/[^0-9.]//g)
            DYNIP[$index]=$(ping -c1 "${DDNSHOST[$index]}" | sed -n 1p | sed -e 's/(//g' -e 's/)//g' | cut -d " " -f3 | sed -e 's/\://g')
            [ -z "${DYNIP[$index]}" ] && eRROR[$index]="Cant get IP of DDNSHOST: ${DDNSHOST[$index]}"
        done   
    fi
}

# answer return codes: 1=ip.updated ; 3=wrong.pwd ; 4=wrong.username
function do_update() {
    index=$1
    # Replace %USER% , %PASS% , %HOST%
    URL=${URL[$index]}
    URL=${URL//%USER%/`proc_url_encode "${USERNAME[$index]}"`}
    URL=${URL//%PASS%/`proc_url_encode "${PASSWORD[$index]}"`}
    URL=${URL//%HOST%/${DDNSHOST[$index]}}
    wget -q -O ${CHKFILE}_answer_$index $URL
    answer=$(cat ${CHKFILE}_answer_$index)
    echo "DDNSHOST: ${DDNSHOST[$index]} - DYNIP: ${DYNIP[$index]} - CURRENTIP: $CURRENTIP - answer: $answer"
    LOG_msg "DDNSHOST: ${DDNSHOST[$index]} - DYNIP: ${DYNIP[$index]} - CURRENTIP: $CURRENTIP - answer: $answer"
}

# fuer jedes "profil" (DDNSHOST) die jeweilige "action" abarbeiten (function-names)
function check_profils() {
    ACTION=$1
    eRROR=""
    get_IPs
    for index in ${!DDNSHOST[*]}; do
        if [ -z "$eRROR" ]; then
            # for each $ACTION...
            if [ ! -z "$ACTION" ]; then
                for actionfunction in $ACTION; do
                    $actionfunction "$index"
                done
            fi
        fi
        sleep $ProfileSwitchSleep
    done
    [ ! -z "$eRROR" ] && for Eidx in ${!eRROR[*]}; do echo "${eRROR[$Eidx]}"; done
}

function update_interval() {
    PiDs="$$ $!"
    echo $PiDs > $PiDFILE
    echo "Running Script in Background with PID(s): $PiDs"
    while true; do
        [ ! -f "$PiDFILE" ] && echo "$srcn: Interval stopped" && break
        # check if online...
        ONLINE=0
        [ "$(ping -c1 "$OnlinePing" | grep -c "seq")" -eq 1 ] && ONLINE=1
        # if online, check each DDNSHOST (array)...
        if [ "$ONLINE" ]; then
            get_IPs
            for index in ${!DDNSHOST[*]}; do
                [ "${DYNIP[$index]}" != "$CURRENTIP" ] && do_update "$index" && abuse_check "$index"
            done
        fi
        if [ ! -z "$eRROR" ]; then
            Error=""
            for Eidx in ${!eRROR[*]}; do
                Error="$Error ${eRROR[$Eidx]}\n"
            done
            echo -e "$Error" && LOG_msg "$Error" && send_EMail "$Error"
            eRROR=""
        fi
        sleep $EVERY
    done
}

function show_status() {
    get_IPs
    for index in ${!DDNSHOST[*]}; do
        if [ "${DYNIP[$index]}" != "$CURRENTIP" ]; then
            echo "The IP of ${DDNSHOST[$index]} (${DYNIP[$index]}) does NOT match your current Internet-IP: $CURRENTIP"
            echo "You should update immediately! (with: $0 now)"
        else
            echo "Your host ${DDNSHOST[$index]} with IP ${DYNIP[$index]} is still up to date: $CURRENTIP"
            if [ -f "${CHKFILE}_answer_$index" ]; then
                answer=$(cat ${CHKFILE}_answer_$index)
                echo -e "Last Answer was: $answer \t $(ReturnCode "$(echo $answer|sed -e s/.*://)")"
            fi
        fi
        echo " "
    done
    [ -f "$PiDFILE" ] && echo "Script seems to run in background with PID(s): $(cat $PiDFILE)"
}

function kill_script() {
    counter="5"
    [ -f "$PiDFILE" ] && PID=$(cat $PiDFILE)
    #[ -z "$PID" ] && PID="$$ $!"
    if [ ! -z "$PID" ]; then
        echo "PID(s): $PID"
        echo -n "Stopping Script"
        if ( kill -TERM $PID 2> /dev/null ); then
            c=1
            while [ "$c" -le 300 ]; do
                if ( kill -0 $PID 2> /dev/null ); then
                    echo -n "."
                    sleep 1
                else
                    break
                fi
                c=$((++c))
            done
        fi
        if ( kill -0 $PID 2> /dev/null ); then
            echo -e "\rScript is not shutting down cleanly - killing"
            kill -KILL $PID
        else
            echo " done"
        fi
        #for P in $PID; do
        #    kill -9 $P >/dev/null 2>&1
        #    echo "Killed PID $P"
        #done
        killall -9 $IPCddnslinkname $srcn >/dev/null 2>&1
    else
        echo "Nothing to $1!"
    fi
    rm -f $PiDFILE
}

function echo_PIDs() {
    [ -f "$PiDFILE" ] && PID=$(cat $PiDFILE)
    [ -z "$PID" ] && PID="$$ $!"
    if [ -z "$PID" ]; then
        echo "Seems script isnt running in background"
    else
        echo "Scripts currently ProcessIDs: $PID"
    fi
}


if [ -f "$IPCfunctions" -a -f "$IPCddnssrc" ]; then
    linkname=$IPCddnslinkname
else
    linkname=$0
fi

case "$1" in
    "")
        update_interval &
    ;;
    [aA][uU][tT][oO]|[sS][tT][aA][rR][tT])
        bash $0 & >/dev/null 2>&1
    ;;
    [kK][iI][lL][lL]|[sS][tT][oO][pP])
        kill_script $1
    ;;
    [nN][oO][wW])
        check_profils "do_update abuse_check"
    ;;
    [pP][iI][dD]*)
        echo_PIDs
    ;;
    [sS][tT][aA][tT][uU][sS])
        show_status
    ;;
    [hH][eE][lL][pP]|[hH][iI][lL][fF][eE]|?)
        echo "Usage: $linkname [now|auto|kill|status|pid|help]"
        echo "$linkname now -> Force to update DDNSHOST immediately (erzwinge sofortiges updaten von DDNSHOST)"
        echo "$linkname auto -> Checks/updates DDNSHOST every $EVERY seconds (Ueberprueft/updated DDNSHOST alle $EVERY Sekunden)"
        echo "$linkname kill -> Kills running script (Script wird beendet)"
        echo "$linkname status -> Show current DDNSHOSTs status (Zeigt den aktuellen Status, ob ein update noetig ist)"
        echo "$linkname pid -> Show Process IDs (Zeigt die verwendeten ProzessIDs dieses Scripts)"
        echo "$linkname deinstall -> Deinstalls Script (Deinstalliert das Script)"
        echo "$linkname help -> This help... (Zeigt diese Hilfe...)"
    ;;
    [dD][eE][iI][nN][sS]*)
        kill_script $1
        rm -f $IPCddnssrc /sbin/$IPCddnslinkname
        remove_addon
        echo "Script deinstalled!"
    ;;
    *)
        echo "Usage: $linkname [now|auto|kill|status|pid|help]"
    ;;
esac

exit 0

#!/bin/bash
#Script zur Prüfung der Aktualität der DynDNS by al-x83 V1
DDNSHOST="meine dns"

#Aktuelle IP ermitteln:
CURRENTIP=`w3m -dump | awk -F': ' '/IP/ { print $2 }'`

function dyn_ip () {
DYNIP=$(ping -c1 "${DDNSHOST}" | sed -n 1p | sed -e 's/(//g' -e 's/)//g' | cut -d " " -f3 | sed -e 's/\://g')
if [ -f "/tmp/.dynip" ]; then
rm /tmp/.dynip
fi
echo $DYNIP >> /tmp/.dynip
}

if [ -f "/tmp/.dynip" ]; then
DYNIP=$(cat /tmp/.dynip)
else
dyn_ip
fi

if [ "${DYNIP}" != "$CURRENTIP" ]; then
echo "Die IPs der Dyn-Adresse ($DYNIP) und die aktuelle Internet IP ($CURRENTIP) sind ungleich"
/var/emu/script/DDNSupdater2.sh now
sleep 20
dyn_ip
else
echo "Die IPs der Dyn-Adresse ($DYNIP) und die aktuelle Internet IP ($CURRENTIP) sind identisch"
fi

Code:
Lade Crontab zum editieren..
  GNU nano 2.2.6                                                 Datei: /etc/crontab

# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=""

#  * * * * * Benutzer Befehl
#  | | | | |
#  | | | | +---- Wochentag (0-7) (Sonntag =0 oder =7)
#  | | | +------ Monat (1-12)
#  | | +-------- Tag (1-31)
#  | +---------- Stunde (0-23)
#  +------------ Minute (0-59)

# m h dom mon dow user  command
17 *    * * *   root    cd / && run-parts --report /etc/cron.hourly
25 6    * * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6    * * 7   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6    1 * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )


#Zeitabgleich -> benoetigt [apt-get install ntpdate]
#0 8 * * * root ntpdate -s pool.ntp.org      #Zeitabgleich (Taeglich um 08:00 Uhr)

#IPC
#0 4 * * 5 root /var/emu/script/ipc-backup.sh full l 30 #Backup - Full (Woechentlich um 04:00, Freitag)
#0 2 * * * root /var/emu/script/ipc-backup.sh conf l 14  #Backup - Konfiguration (Taeglich um 02:00)
#0 6 * * * root /var/emu/script/ipc-set.sh               #Rechte setzen (Taeglich um 06:00)

#CCcam
#* * * * * root /var/emu/script/cccam-watchdog.sh       #CCcam - Teste ob CCcam laeuft (jede Minute)
#30 4 * * * root /var/emu/script/cccam restart          #CCcam - EMU Neustart (Taeglich um 04:30)
#0 5 * * * root /var/emu/script/cccam-cfgnl.sh          #CCcam - Lade neue Konfiguration (Taeglich um 05:00)
#01 5 * * * root /bin/cccam softkey && /bin/cccam restart  #CCcam EMU Keys updaten+restart (Taeglich um 05:01)

#CCcamInfoPHP (Update,Ping,Online)
#*/2 * * * * www-data wget -q --spider http://localhost/ipc/infophp/cron_update.php?p=0 #CCcamInfoPHP - Update alle 2 Minuten
#58 * * * * www-data wget -q --spider http://localhost/ipc/infophp/cron_ping.php?p=0    #CCcamInfoPHP - PING jede Stunde
#59 * * * * www-data wget -q --spider http://localhost/ipc/infophp/cron_online.php?p=0  #CCcamInfoPHP - Online jede Stunde

#OScam
* * * * * root /var/emu/script/oscam-watchdog.sh  #OScam - Teste ob OScam laeuft (jede Minute)
#29 4 * * * root /var/emu/script/oscam restart     #OScam - EMU Neustart (Taeglich um 04:29)

#OSEmu
* * * * * root /var/emu/script/osemu-watchdog.sh  #Teste ob OSEmu laeuft (jede Minute)
#29 4 * * * root /var/emu/script/osemu restart     #OSEmu - EMU Neustart (Taeglich um 04:29)

#NewCS
#* * * * * root /var/emu/script/newcs-watchdog.sh  #NewCS - Teste ob NewCS laeuft (jede Minute)

#Camd3
#* * * * * root /var/emu/script/camd3-watchdog.sh  #Teste ob Camd3 laeuft (jede Minute)
#01 5 * * * root /bin/camd3 softkey && /bin/camd3 restart  #Camd3 EMU Keys updaten+restart (Taeglich um 05:01)

#sBox
#* * * * * root /var/emu/script/sbox-watchdog.sh  #Teste ob sBox laeuft (jede Minute)

#gbox
#* * * * * root /var/emu/script/gbox-watchdog.sh  #Teste ob gbox laeuft (jede Minute)

#DynDNS Static Update -> benoetigt [apt-get install ddclient]
#6 6 * * 1 root /usr/sbin/ddclient -force > /var/log/ipc/dyndns_update.log  #Static DynDNS Update (Woechentlich um 06:06, Montag)

#DDNSupdater.sh
#@reboot        root /var/emu/script/DDNSupdater.sh auto  #DDNSupdater.sh bei System boot/reboot starten
#0 6 * * 1 root /var/emu/script/DDNSupdater.sh now  #DDNSupdater.sh Static-IP Update erzwingen (Woechentlich um 06:00,Montag)

#DDNSupdater2.sh
#@reboot        root /var/emu/script/DDNSupdater2.sh auto  #DDNSupdater2.sh bei System boot/reboot starten
#0 6 * * 1 root /var/emu/script/DDNSupdater2.sh now  #DDNSupdater2.sh Static-IP Update erzwingen (Woechentlich um 06:00, Montag)
* * * * * root /var/emu/script/ip-check.sh

#apache2
@reboot root /var/emu/script/apache2-watchdog.sh >/dev/null 2>&1
* * * * *       root /var/emu/script/apache2-watchdog.sh >/dev/null 2>&1

#Auf Updates fuer IPC pruefen
0 20 * * * root php /var/www/ipc/page/update-check.php >/dev/null 2>&1 #Update-Check (Taeglich um 20:00)

Code:
IPC          Informations                                      01.05.2019 11:23
===============================================================================


 System is:      armel  Kernel: 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017
 IPC Version:      11.6          Build: 2018-09-25

 Installed Cams (running/not running):

   oscam   version: oscam-1.20_svn-r11517           uptime: 31 minutes, 6 seconds
   newcs   version: 1.67 RC1 [Build: 95]            uptime: 31 minutes, 6 seconds
   sbox    version: 0.0.5-4 #7 tests (07/12/2015)   uptime: 31 minutes, 6 seconds
   osemu   version: <unknown>                       uptime: 31 minutes, 6 seconds
   gbox    version: <unknown>

 Installed Addons:
                     tmp2ram.sh                     installed at: 2018-02-23 11:12
                     logmini.sh                     installed at: 2018-02-23 11:12
                     DDNSupdater.sh                 installed at: 2018-02-26 09:15
                     DDNSupdater2.sh                installed at: 2019-04-30 17:07

root@raspberrypi ~ >

Code:
May  1 11:06:01 raspberrypi rsyslogd-2007: action 'action 11' suspended, next retry is Wed May  1 11:06:31 2019 [try http://www.rsyslog.com/e/2007 ]
May  1 11:06:01 raspberrypi CRON[4418]: (root) CMD (/var/emu/script/ip-check.sh)
May  1 11:06:01 raspberrypi CRON[4420]: (root) CMD (/var/emu/script/osemu-watchdog.sh  #Teste ob OSEmu laeuft (jede Minute))
May  1 11:06:01 raspberrypi CRON[4422]: (root) CMD (/var/emu/script/oscam-watchdog.sh  #OScam - Teste ob OScam laeuft (jede Minute))
May  1 11:06:01 raspberrypi CRON[4424]: (root) CMD (/var/emu/script/apache2-watchdog.sh >/dev/null 2>&1)

Vorab schonmal Danke.
 
Zurück
Oben