Welcome!

Welcome to Satlover forums, full of great people, ideas and excitement.

Please register if you would like to take part. link..

Register Now

Alert: Don't Use Hotmail Email Accounts for registration

Collapse

Before Access to all Forums and Trial accounts you must need to activate your account Email address

Please help about script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • giua
    Experienced Member
    • Mar 2011
    • 373

    Please help about script

    On the net i've found a script to put my DM500 box on standby (after power outage in my case) and I followed these config but i didn't have any result.

    on var/script/ i made a file named auto_standby.sh with chmod 755 with this code:

    Code:
    #!/bin/sh
    
    PSW="dreambox"
    TMPFILE="/tmp/tmpWebIF.standby"
    
    if [ "$1" = "" ]; then
    sleep 30
    else
    sleep $1
    fi
    
    wget -O $TMPFILE -q http://root:dreambox@localhost/cgi-bin/admin?command=standby
    rm $TMPFILE
    
    exit 0
    Then, on var/etc i created init file , chmod 755 and i've put this:
    Code:
    #!/bin/sh
    /var/script/auto_standby.sh 40 &
    No standby, nothing.
    Where's is the problem? I hope in a solution.
    Thanks
  • nml52
    Board Senior Member
    • Nov 2011
    • 310

    #2
    Re: Please help about script

    I don't know a lot about scripts but wont the hash stop it from working.

    nml

    Comment

    • uttnls

      #3
      Re: Please help about script

      Is the Web Interface enabled on your DM, on port 80, with the user: root and the password: dreambox?

      If not, update this line accordingly and enable your Web Interface:

      Code:
      wget -O $TMPFILE -q [URL]http://root:dreambox@localhost/cgi-bin/admin?command=standby[/URL] rm $TMPFILE

      Comment

      • desert_rose
        Member
        • Jul 2013
        • 41

        #4
        Re: Please help about script

        try this script ... it's working fine .....

        Code:
        #!/bin/sh
        #
        # You need to switch off autorization from localhost!!!
        #
        sleep 30
        wget -q "http://127.0.0.1/cgi-bin/xmessage?timeout=5&caption=PowerOn-patch&body=Dreambox%20going%20to%20stanby%20mode...&type=1" -O /dev/null
        sleep 5
        wget -q http://127.0.0.1/cgi-bin/admin?command=standby -O /dev/null
        Make it executable (chmod 755 /var/bin/go2stanby.sh) and
        edit/create /var/etc/init file and put at end of this file:
        Code:
        /var/bin/go2standby.sh &

        Comment

        Working...