notaclue Posted May 31, 2016 Share Posted May 31, 2016 (edited) Hallo, mit DVBV RS 1.32.0 konnte man mit curl und folgendem Befehl den Standby in einer Batch-Datei unterbringen: curl http://127.0.0.1:8089/tasks.html?task=Standby&aktion=tasks In DVBV RS 1.33.0 scheint das nicht zu klappen? Hat jemand eine Idee? Danke im Voraus! Folgendes habe ich probiert: C:\Apps\curl>curl http://localhost:8089/tasks.html?task=Standby&aktion=tasks<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>Aufgaben</title><link rel="stylesheet" href="css/global.css" type="text/css" media="screen"></head><body id="main"><div class="scrollpanel" style="padding: 5px 5px 5px"><table width="100%" id="table_a"></table></div></body></html>'aktion' is not recognized as an internal or external command,operable program or batch file. C:\Apps\curl>curl http://localhost:8089/api/task=Standby<HTML><HEAD><TITLE>DVBViewer - Redir</TITLE></HEAD><BODY>You should be redirected automatically !<BR><A HREF="/api/task=Standby/">Click Here</A><BR></BODY></HTML> C:\Apps\curl> Edited May 31, 2016 by notaclue Link to comment
Nanohcv Posted May 31, 2016 Share Posted May 31, 2016 (edited) http: //localhost:8089/api/tasks.html?task=Standby geht bei mir (Bei deinem letzten Versuch hast du tasks.html? vergessen) Edited May 31, 2016 by Nanohcv Link to comment
Tjod Posted May 31, 2016 Share Posted May 31, 2016 Und hier wird auch beim alten Befehl die Aktion noch ausgeführt. Nur ein Aufruf von 127.0.0.1:8089/tasks.html?... ruft jetzt halt immer auch die Webinterface Seite auf. Link to comment
notaclue Posted May 31, 2016 Author Share Posted May 31, 2016 http: //localhost:8089/api/tasks.html?task=Standby geht bei mir (Bei deinem letzten Versuch hast du tasks.html? vergessen) Damit klappt es. Danke! Link to comment
notaclue Posted May 31, 2016 Author Share Posted May 31, 2016 Und hier wird auch beim alten Befehl die Aktion noch ausgeführt. Nur ein Aufruf von 127.0.0.1:8089/tasks.html?... ruft jetzt halt immer auch die Webinterface Seite auf. Ich habe die externe IP deaktiviert, Mit localhost oder 127.0.0.1 klappt es anscheinend mit der alten Syntax nicht mehr. Warum auch immer. Danke für's Ausprobieren! Link to comment
kafisc Posted February 17, 2018 Share Posted February 17, 2018 Hi zusammen, keine Ahnung, ob das noch relevant ist. Ich benutze den Befehl samt HTTP-Basic-Authentifizierung so: Spoiler curl http://127.0.0.1:8089/tasks.html --user nutzer:password -G -d task=CleanupDB -d aktion=tasks Und curl bitte nicht vergessen. Sollte immer im gleichen Verzeichnis wie das Batch file liegen. Grüße kafisc Link to comment
Recommended Posts