Register

Welcome to the RDI-Board Community.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.


Donate Now Goal amount for this month: 100 EUR, Received: 100 EUR (100%)
Donate to support this site...

Results 1 to 5 of 5
  1. #1
    Senior Member Expert
    Join Date
    Oct 2004
    Posts
    1,139
    Posts Thanks / Likes

    Default autorestart script (dm500)

    Din cate imi amintesc.. era pe aici asa ceva!
    Am tot cautat, dar nu am gasit..
    Caut un script care restarteaza dreamul la o ora fixa in fiecare zi.

  2. #2
    Gold Member Expert
    Join Date
    Feb 2005
    Posts
    4,738
    Posts Thanks / Likes

    Default

    Quote Originally Posted by zaiclopz View Post
    Din cate imi amintesc.. era pe aici asa ceva!
    Am tot cautat, dar nu am gasit..
    Caut un script care restarteaza dreamul la o ora fixa in fiecare zi.
    pt. CCcam ar fi asta:
    #!/bin/sh
    CAM=`ps | grep -c CCcam`
    if [ "$CAM" = "1" ];
    then
    echo >> /var/log/logverifica "EMU IS OUT START EMU"
    /var/bin/CCcam
    else
    date >> /var/log/log
    echo >> /var/log/log "OK INIT"
    fi
    #echo $CAM
    exit 0

  3. #3
    Junior Member Teacher
    Join Date
    Jun 2007
    Location
    26.12°E / 44.42°N
    Posts
    473
    Posts Thanks / Likes

    Default

    Code:
    /bin/wget -O- "http://root:[email protected]/cgi-bin/admin?command=restart"
    il salvezi intr-un fisier gen restart_enigma.sh si il pui in directorul /var/script
    cu crond ii setezi o periodicitate la executie

  4. #4
    Junior Member Teacher
    RDI - Board Default Avatar

    Join Date
    Jul 2006
    Posts
    129
    Posts Thanks / Likes

    Default

    pe imaginea gemini 4.4.0 ... am creat in /var/script un fisier denumit reboot_script.sh in care am scris simplu: reboot si din crond i-am dat sa ruleze respectivul script in fiecare dimineata la ora 4 .... merge fara nici un fel de probleme.

  5. #5
    Senior Member Expert
    Join Date
    Oct 2004
    Posts
    1,139
    Posts Thanks / Likes

    Default

    vad ca imaginea nu are crond, si nu-l gasesc pe rdi-dreambox, un link careva? sa nu ma apuc sa schimb imaginea..

 

 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Back to Top