Kann man ein script über´s PlugIn Menü starten?

Wir haben aktuell ein Problem mit dem Board und arbeiten an der Lösung...
  • Hallo zusammen!


    Ich möchte über das PlugIn-Menü ein Script starten.
    Weiß jemand wie ich da vorgehen muss?
    ...ich möchte nach Möglichkeit ohne ein weiteres PlugIn auskommen.
    Falls das nicht geht, ok dann muss eben eins her. :winking_face:


    Image ist ein CVS auf openembedded Enigma1-Basis!


    Danke schonmal!

  • Ja, kann man, hier die Anleitung aus dem entsprechenden CVS Log


    You need two files for scripts in the same directory as plugins (/lib/tuxbox/plugins etc.):


    - <scriptname>.sh This is the script file - make sure it runs from console before trying to run it from enigma :winking_face:
    - <scriptname>.cfg The same format as for plugins, but you have to set type to 3 (type=3) so enigma can recognize it as a script

    "I'm just sitting in my room
    With a needle in my hand
    Just waiting for the tomb
    Of some old dying man"

  • Danke! Werde ich direkt mal testen!


    hmm also ich hab die .cfg mal so aufgebaut:


    pluginversion=1
    name=CCcam
    desc=Emu
    type=3
    needfb=0
    needrc=0
    needoffsets=0



    Danach kommt die Meldung auf dem TV:
    Ausgabe von /usr/lib/tuxbox/plugins/CCam-Start.sh



    ...aber es passiert nichts!
    Das script wird nicht ausgeführt!
    Wenn ich das script über Telnet starte ist alles ok.


    Muss ich noch was in der cfg ändern?

    Einmal editiert, zuletzt von nonleft ()

  • Wenn beide Dateien den gleichen Namen besitzen und die Rechte der .sh Datei auf 755 sind sollte es klappen


    die Angabe "pluginversion=1" ist mir jetzt unbekannt

  • Rechte sind natürlich auf 755.
    Wie gesagt aus Telnet raus geht es.


    ich hab jetzt mal die config so geändert:


    name=use CCcam
    desc=
    depend=
    type=3
    needfb=0
    needrc=0
    needlcd=0


    Leider mit dem gleichen Ergebnis! :frowning_face:


    Liegt´s evtl daran weil´s ne 600er ist?
    Wie gesagt openembedded1 ....

  • ich hatte mal das Problem dass mein FTP (Filezilla) Progi im Auto - mode die Files im Ascii Mode übertragen hat - und somit das unix-konforme Format vernichtet hat... FTP übertragung muß binär eingestellt sein.


    War echt mühsam das rauszufinden - aber Seddi hatte dann den entscheidenden Hinweis :winking_face:


    poste mal das File hier (lade es von der Box)

  • Bisher haben die scripte immer grfunzt...halt net als Plugin! :winking_face:


    So hier mal das script:


    Bash
    #!/bin/sh
    
    
    killall -9 wdog
    sleep 3
    killall -9 dccamd
    ln -s /usr/keys /var/
    /usr/bin/CCcam &


    als script geht´s!
    ...allerding muss ich es über
    sh CCcamStart.sh
    starten. Sonst lässt es sich nicht ausführen.
    Es kommst sonst: -sh: CCcam.sh: not found

  • Kannst dir ja die DBC-Keyupdater (Sin & Satan) als Beispiele nehmen. Dort wird es genauso gemacht. Die .cfg und .sh Dateien haben auch den allerselben Namen ausser der Endung und die sh-Rechte sind auf 755 gesetzt?


    Dein Script läuft bei mir auch ohne sh vorne dran:


    Zitat

    root@dm7025:~# chmod 755 /tmp/script.sh
    root@dm7025:~# /tmp/script.sh
    killall: wdog: no process killed
    killall: dccamd: no process killed
    ln: /var/keys: File exists
    /tmp/script.sh: 7: /usr/bin/CCcam: not found

    <b>MfG Ali</b>
    <p />
    <select OnChange="window.open(this.options[this.selectedIndex].value, 'New')">
    <option value="/wbb2">Aus meinem Labor:</option>
    <option value="/wbb2/thread.php?threadid=127480">ARD Mediathek</option>
    <option value="/wbb2/thread.php?threadid=105590">CCcam Info</option>
    <option value="/wbb2/thread.php?threadid=99943">CS-Manager</option>
    <option value="/wbb2/thread.php?threadid=117478">DVD Backup</option>
    <option value="/wbb2/thread.php?threadid=90957">Extended Service Info</option>
    <option value="/wbb2/thread.php?threadid=92153">Mosaic</option>
    <option value="/wbb2/thread.php?threadid=114726">Movie Jukebox</option>
    <option value="/wbb2/thread.php?threadid=127314">Movielist Preview</option>
    <option value="/wbb2/thread.php?threadid=107501">ORF.at</option>
    <option value="/wbb2/thread.php?threadid=99478">Permanent Clock</option>
    <option value="/wbb2/thread.php?threadid=111496">Podcast</option>
    <option value="/wbb2/thread.php?threadid=125382">Porn Center</option>
    <option value="/wbb2/thread.php?threadid=89009">RS Downloader</option>
    <option value="/wbb2/thread.php?threadid=118188">Seekbar</option>
    <option value="/wbb2/thread.php?threadid=92584">Zap-History Browser</option>
    <option value="/wbb2/thread.php?threadid=127065">Zap Statistic</option>
    <option value="/wbb2/thread.php?threadid=125298">ZDF Mediathek</option>
    </select>

  • Habe dein Script etwas verfeinert, hoffe es ist okay für dich. So werden mal mögliche Fehler abgefangen, neuer Output im Gegensatz zum obigen Orginal:


    Zitat

    root@dm7025:~# /tmp/script.sh
    Killing processes wdog and dccamd...
    Executing CCcam...
    [Error] Couldn't find the CCcam-file. Exit.
    root@dm7025:~#


    Neues Script:

    <b>MfG Ali</b>
    <p />
    <select OnChange="window.open(this.options[this.selectedIndex].value, 'New')">
    <option value="/wbb2">Aus meinem Labor:</option>
    <option value="/wbb2/thread.php?threadid=127480">ARD Mediathek</option>
    <option value="/wbb2/thread.php?threadid=105590">CCcam Info</option>
    <option value="/wbb2/thread.php?threadid=99943">CS-Manager</option>
    <option value="/wbb2/thread.php?threadid=117478">DVD Backup</option>
    <option value="/wbb2/thread.php?threadid=90957">Extended Service Info</option>
    <option value="/wbb2/thread.php?threadid=92153">Mosaic</option>
    <option value="/wbb2/thread.php?threadid=114726">Movie Jukebox</option>
    <option value="/wbb2/thread.php?threadid=127314">Movielist Preview</option>
    <option value="/wbb2/thread.php?threadid=107501">ORF.at</option>
    <option value="/wbb2/thread.php?threadid=99478">Permanent Clock</option>
    <option value="/wbb2/thread.php?threadid=111496">Podcast</option>
    <option value="/wbb2/thread.php?threadid=125382">Porn Center</option>
    <option value="/wbb2/thread.php?threadid=89009">RS Downloader</option>
    <option value="/wbb2/thread.php?threadid=118188">Seekbar</option>
    <option value="/wbb2/thread.php?threadid=92584">Zap-History Browser</option>
    <option value="/wbb2/thread.php?threadid=127065">Zap Statistic</option>
    <option value="/wbb2/thread.php?threadid=125298">ZDF Mediathek</option>
    </select>

    Einmal editiert, zuletzt von AliAbdul ()

  • Danke Ali!


    ...das wäre dann der nächste Schritt gewesen wenn das script sich hätte starten lassen.


    Aber das script startet immer noch nicht!

  • Funtzt hier 1a.


    Hänge dir mal die OSD-Shots und das Tarball an...

    <b>MfG Ali</b>
    <p />
    <select OnChange="window.open(this.options[this.selectedIndex].value, 'New')">
    <option value="/wbb2">Aus meinem Labor:</option>
    <option value="/wbb2/thread.php?threadid=127480">ARD Mediathek</option>
    <option value="/wbb2/thread.php?threadid=105590">CCcam Info</option>
    <option value="/wbb2/thread.php?threadid=99943">CS-Manager</option>
    <option value="/wbb2/thread.php?threadid=117478">DVD Backup</option>
    <option value="/wbb2/thread.php?threadid=90957">Extended Service Info</option>
    <option value="/wbb2/thread.php?threadid=92153">Mosaic</option>
    <option value="/wbb2/thread.php?threadid=114726">Movie Jukebox</option>
    <option value="/wbb2/thread.php?threadid=127314">Movielist Preview</option>
    <option value="/wbb2/thread.php?threadid=107501">ORF.at</option>
    <option value="/wbb2/thread.php?threadid=99478">Permanent Clock</option>
    <option value="/wbb2/thread.php?threadid=111496">Podcast</option>
    <option value="/wbb2/thread.php?threadid=125382">Porn Center</option>
    <option value="/wbb2/thread.php?threadid=89009">RS Downloader</option>
    <option value="/wbb2/thread.php?threadid=118188">Seekbar</option>
    <option value="/wbb2/thread.php?threadid=92584">Zap-History Browser</option>
    <option value="/wbb2/thread.php?threadid=127065">Zap Statistic</option>
    <option value="/wbb2/thread.php?threadid=125298">ZDF Mediathek</option>
    </select>

    Einmal editiert, zuletzt von AliAbdul ()

  • @nonleft


    imhotep und maxl haben ja schon mal drauf hingewiesen.
    Also binär übertragen und unixkonformen Editor
    (der auch auf das Unix Format eingestellt) ist verwenden.

    Öffne doch mal das Skript mit dem vi und schau ob
    am Zeilende das Steuerzeichen ^M steht.


    Wenn der UltraEdit das Format selbständig ermittelt und du
    z.b. das Skript von AliAbdul per Drag&Drop hier aus dem Thread
    in den Editor kopiert hast, ist es sehr gut möglich das der Editor
    das Skript nicht im unix sondern im Windows Format gespeichert hat.


    Unix: Zeilenende nur ein LF
    Windows : Zeilenende CR + LF

    ( I love my menu's :winking_face: )
    E1 Quicktip: Blue-Panel -> (5) Quickbutton Einstellungen ->Plugin nach Name -> Flexmenu 1.94 :]
    E2 Quicktip: edit /etc/quickbutton.xml add this into plugins section then Blue-Panel -> (3) Extras/Einstellungen -> Quickbutton ->Plugin nach Name -> Menu Fantastic;)

  • So, jetzt funktionierts!! :)


    Ich hab jetzt mal auf binary umgeschaltet (stand auf auto) und siehe da....klappt! ....komisch auf was man da alles achten muss!! ,...zumal ich bis dato NIE Probleme mit Scripten etc hatte.


    Danke an alle die hier geholfen haben!
    Und besonderen Dank an Ali, dass Du mein script gleich verfeinert hast.


    ...jetzt muss schon weniger Feinheiten einbauen und dann funzt das so wie es soll!


    DANKE DANKE DANKE!

  • Kann man die Scripte auch "versteckt" ausführen. Also ohne ein Ausgabefenster anzuzeigen