Jump to content

Wie eine Batch-Datei für Stand-By im DVBV 1.33.0 erstellen?


Recommended Posts

Hallo,

 

mit DVBV RS 1.32.0 konnte man mit curl und folgendem Befehl den Standby in einer Batch-Datei unterbringen:

 

 

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 by notaclue
Link to comment

http: //localhost:8089/api/tasks.html?task=Standby

 

geht bei mir (Bei deinem letzten Versuch hast du tasks.html? vergessen)

Edited by Nanohcv
Link to comment

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

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

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
  • 1 year later...

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
×
×
  • Create New...