Seite 1 von 4 123 ... LetzteLetzte
Ergebnis 1 bis 10 von 31
  1. #1
    Senior Mitglied
    Registriert seit
    20.12.2013
    Beiträge
    270
    Thanks (gegeben)
    141
    Thanks (bekommen)
    30
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDanke
    Box 1:
    Amiko Viper 4K Combo
     
     

    How to run a script from remote ?

    Hi !

    I'ts possible to run a script from OpenATV 5.1 whit remote control ?
    The script, i-ts on atached hdd.

    I don't want to run script automatically, only from remote.

    I'ts possible this ?

    •   Alt Advertising

       

  2. #2
    Pike_Bishop
    Gast
    Hi,

    yes that's possible.
    you must put the script in the directory /usr/script on your box and then make it executable in telnet with as example;
    chmod 755 /usr/script/name_of_the_script

    if the directory /usr/script doesn't exits make it first in telnet with;
    mkdir /usr/script

    and then you can put it on a button to your remote control with hotkey (you can find hotkey in the settings).


    regards
    Biki3

  3. Thanks aspeorocopolus, gh_n bedankten sich
  4. #3
    Senior Mitglied
    Registriert seit
    20.12.2013
    Beiträge
    270
    Thanks (gegeben)
    141
    Thanks (bekommen)
    30
    Themenstarter
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDanke
    Box 1:
    Amiko Viper 4K Combo
     
     
    Thanks for fast ansvers.

    I-m make /usr/script folder
    and copy my script in this place.
    chmod 755 scriptname from the /usr/script folder
    In the hotkey settings i-m choice the script
    save this with green from remote, and exit, exit from remote.

    The script i-ts not running with red button, or other button.

  5. #4
    Pike_Bishop
    Gast
    hi,

    The script i-ts not running with red button, or other button.
    but you can see the menu entry for it if you press the red button or ?

    try the script first with telnet as example;
    sh /usr/script/nameed_script.sh
    and look if it works.

    how you named the script exactly (it's good if it have .sh at the end).


    regards
    Biki3
    Geändert von Pike_Bishop (16.08.2015 um 19:02 Uhr)

  6. Thanks aspeorocopolus bedankten sich
  7. #5
    Senior Mitglied
    Registriert seit
    20.12.2013
    Beiträge
    270
    Thanks (gegeben)
    141
    Thanks (bekommen)
    30
    Themenstarter
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDanke
    Box 1:
    Amiko Viper 4K Combo
     
     
    The script i-ts running corectly from telnet.

    The script name is /usr/script/backup.sh
    This is the script:

    Code:
    echo @.....Script BackUP pentru enigma 2 fisiere importante..........@
    #sleep 3
    echo se creaza folderul /BackUP
    if [ -d /hdd/BackUP ]
        then
             echo "Folderul /hdd/BackUP deja exista"
        else
            mkdir /hdd/BackUP
        echo "a fost creat folderul /hdd/BackUP"
        fi
    #sleep 1
    echo ................................
    echo se creaza folderul /BackUP/etc
    if [ -d /hdd/BackUP/etc ]
        then
             echo "Folderul /hdd/BackUP/etc deja exista"
        else
            mkdir /hdd/BackUP/etc
        echo "a fost creat folderul /hdd/BackUP/etc"
        fi
    #sleep 1
    echo ................................
    echo se creaza folderul /usr
    if [ -d /hdd/BackUP/usr ]
        then
             echo "Folderul /hdd/BackUP/usr deja exista"
        else
            mkdir /hdd/BackUP/usr
        echo "a fost creat folderul /hdd/BackUP/usr"
            fi
    #sleep 1
    echo ................................
    echo se creaza folderul /usr/bin
    if [ -d /hdd/BackUP/usr/bin ]
        then
             echo "Folderul /hdd/BackUP/usr/bin deja exista"
        else
            mkdir /hdd/BackUP/usr/bin
            echo "a fost creat folderul /hdd/BackUP/usr/bin"  
        fi
    #sleep 1
    echo ................................
    echo se creaza folderul /usr/keys
    if [ -d /hdd/BackUP/usr/keys ]
        then
             echo "Folderul /hdd/BackUP/usr/keys deja exista"
        else
            mkdir /hdd/BackUP/usr/keys
            echo "a fost creat folderul /hdd/BackUP/usr/keys"  
        fi
    #sleep 1
    echo ................................
    echo se creaza folderul /usr/keys/oscam
    if [ -d /hdd/BackUP/usr/keys/oscam ]
        then
             echo "Folderul /hdd/BackUP/usr/keys/oscam deja exista"
        else
            mkdir /hdd/BackUP/usr/keys/oscam
            echo "a fost creat folderul /hdd/BackUP/usr/keys/oscam"  
        fi
    #sleep 1
    echo ................................
    echo se creaza folderul /usr/share
    if [ -d /hdd/BackUP/usr/share ]
        then
             echo "Folderul /hdd/BackUP/usr/share deja exista"
        else
            mkdir /hdd/BackUP/usr/share
            echo "a fost creat folderul /hdd/BackUP/usr/share"  
        fi
    #sleep 1
    echo ................................
    echo se creaza folderul /usr/share/enigma2
    if [ -d /hdd/BackUP/usr/share/enigma2 ]
        then
             echo "Folderul /hdd/BackUP/usr/share/enigma2 deja exista"
        else
            mkdir /hdd/BackUP/usr/share/enigma2
            echo "a fost creat folderul /hdd/BackUP/usr/share/enigma2"  
        fi
    #sleep 1
    echo ................................
    #salvare lista de canale
    if [ -d /hdd/BackUP/etc/enigma2 ]
        then
             echo "Folderul /hdd/BackUP/etc/enigma2 deja exista"
        else
            mkdir /hdd/BackUP/etc/enigma2
            echo "a fost creat folderul /hdd/BackUP/etc/enigma2"  
        fi
    #sleep 1
    echo ................................
    if [ -d /hdd/BackUP/etc/tuxbox ]
        then
             echo "Folderul /hdd/BackUP/etc/tuxbox deja exista"
        else
            mkdir /hdd/BackUP/etc/tuxbox
            echo "a fost creat folderul /hdd/BackUP/etc/tuxbox"  
        fi
    #sleep 1
    echo ................................
    # copiere fisiere BackUP
    echo copiere fisiere script-uri emu
    cp /etc/*.emu /hdd/BackUP/etc
    echo copiere inadyn.conf
    cp /etc/inadyn.conf /hdd/BackUP/etc
    echo copiere fisiere configurare oscam
    cp /usr/keys/oscam/* /hdd/BackUP/usr/keys/oscam
    echo copiere fisier bin emulator
    cp /usr/bin/oscam /hdd/BackUP/usr/bin
    echo copiere fisiere encoding.conf
    cp /usr/share/enigma2/encoding.conf /hdd/BackUP/usr/share/enigma2
    echo copiere servicii si buchete
    cp /etc/enigma2/* /hdd/BackUP/etc/enigma2
    echo copiere fisiere xml
    cp /etc/tuxbox/*.xml /hdd/BackUP/etc/tuxbox
    ...but not running from hotkey.

    P.S.
    added printscreen with hotkey assign: http://i.imgur.com/65r52Aw.jpg


    Geändert von aspeorocopolus (16.08.2015 um 20:39 Uhr)

  8. #6
    Pike_Bishop
    Gast
    the script didn't have a shebang at begin of it try;
    #!/bin/bash
    or;
    #!/bin/sh
    looks then at the begin as following;
    Code:
    #!/bin/bash
    
    echo @.....Script BackUP pentru enigma 2 fisiere importante..........@
    #sleep 3
    echo se creaza folderul /BackUP
    if [ -d /hdd/BackUP ]
        then
             echo "Folderul /hdd/BackUP deja exista"
        else
            mkdir /hdd/BackUP
        echo "a fost creat folderul /hdd/BackUP"
        fi
    i don't know if this is the problem but try it - here all scripts are working with hotkey


    regards
    Biki3

  9. Thanks aspeorocopolus bedankten sich
  10. #7
    Avatar von arn354
    Registriert seit
    06.04.2013
    Beiträge
    3.027
    Thanks (gegeben)
    200
    Thanks (bekommen)
    1544
    Total Downloaded
    147,3 KB
    Total Downloaded
    147,3 KB
    ReceiverDanke
    Hotkey rightnow needs PPanel installed to run scripts.
    Grüßle


  11. #8
    Avatar von madie
    Registriert seit
    05.04.2013
    Beiträge
    481
    Thanks (gegeben)
    1409
    Thanks (bekommen)
    3257
    Total Downloaded
    295,50 MB
    Total Downloaded
    295,50 MB
    ReceiverDanke
    Box 1:
    AX HD51
     
     
    or try this file. copy in the folder /usr/lib/enigma2/python/Screens and gui restart

    @Biki3

    Kannst ja auch mal testen. soviel user wirds nicht geben, die scripts nutzen
    Angehängte Dateien Angehängte Dateien
    Du kannst niemals alle mit deinem Tun begeistern. Selbst wenn du übers Wasser laufen kannst, kommt einer daher und fragt, ob du zu blöd zum Schwimmen bist.[/CENTER]

  12. Thanks aspeorocopolus bedankten sich
  13. #9
    Senior Mitglied
    Registriert seit
    20.12.2013
    Beiträge
    270
    Thanks (gegeben)
    141
    Thanks (bekommen)
    30
    Themenstarter
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDanke
    Box 1:
    Amiko Viper 4K Combo
     
     
    Thanks @madie !
    I-m change my buttonsetup.pyo file with your file, and working !

    After exchange file backup my old ButtonSetup file.

  14. #10
    Pike_Bishop
    Gast
    Hi,

    @arn354
    Hotkey rightnow needs PPanel installed to run scripts.
    Das wusste ich gar nicht das es da auch das ppanel braucht, wär mir auch nie aufgefallen da ich das ppanel immer schon parallel auch verwende.
    Na ja - stimmt wohl man lernt nie aus, werd mir das jedenfalls hoffentlich merken für die Zukunft.


    @madie
    Kannst ja auch mal testen. soviel user wirds nicht geben, die scripts nutzen
    Kann ich die dennoch einspielen obwohl ich das ppanel auch verwende oder gäbs da dann Probleme ?
    Aus ppanel will ich auch nicht verzichten denn da hab ich die Scripts drauf laufen die man nicht so oft braucht (verwendet).


    Grüsse
    Biki3
    Geändert von Pike_Bishop (17.08.2015 um 16:26 Uhr)


Seite 1 von 4 123 ... LetzteLetzte

Stichworte

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •  
Alle Zeitangaben in WEZ +1. Es ist jetzt 17:54 Uhr.
Powered by vBulletin® Version 4.2.5 (Deutsch)
Copyright ©2024 Adduco Digital e.K. und vBulletin Solutions, Inc. Alle Rechte vorbehalten.
Resources saved on this page: MySQL 5,26%
Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)
vBulletin Skin By: PurevB.com