femi1100
Goto Top

Per batch und ftp eine Datei in Receiver schreiben

open ip_von_Receiver
root
dreambox

hash
asc

lcd C:\SAT\Dreambox\root\etc\tuxbox
cd /etc/tuxbox
put satellites.xml

prompt

by

Bisher funktionierte das soweit gut. Seit kurzer Zeit schreibt der put-Befehl nur noch eine 0-Byte Datei und prompt kommt erst gar nicht mehr.

Der Aufruf (Batch) lautet "ftp -s:C:\Verzeichnis\write_dream8000_satellites.xml.ftp"

Irgendeine Idee dazu?

Content-Key: 352683

Url: https://administrator.de/contentid/352683

Printed on: April 26, 2024 at 15:04 o'clock

Member: beidermachtvongreyscull
beidermachtvongreyscull Oct 24, 2017 at 10:22:16 (UTC)
Goto Top
Ich weiß jetzt nicht, wie die XML-Datei zustande kommt, aber sollte diese UTF-8-codiert sein, wäre eine Übertragung im ASCII-Modus aus meiner Sicht ein Fehler.

Hast Du es mal mit binary in Zeile 6 probiert?
Member: femi1100
femi1100 Oct 24, 2017 at 12:19:43 (UTC)
Goto Top
Probier' ich abends sicher aus. Die Dateien sind in Windows iso-8859-1 codiert und betrifft nicht nur diese xml.

Wenn ich mich richtig entsinne, funktionierte es auch, wenn man die Befehle einzeln eintippt (was keinen Sinn macht), nur in der Scriptverarbeitung dürfte es haken.

Muss das Script, in dem Beispiel die "write_dream8000_satellites.xml.ftp" auch in einer bestimmten Codierung vorliegen? ANSI?
Member: beidermachtvongreyscull
beidermachtvongreyscull Oct 24, 2017 at 14:56:05 (UTC)
Goto Top
Ein alternativer ftp-Client wie WinSCP in der command line version könnte auch helfen.

Und damit...

BIN ICH WIEDER DRAUẞEN
Member: femi1100
femi1100 Oct 24, 2017 at 18:48:24 (UTC)
Goto Top
ftp> open IP-BOX
Verbindung mit IP-BOX wurde hergestellt.
220 (vsFTPd 3.0.2)
200 Always in UTF8 mode.
Benutzer (IP-BOX:(none)): 
331 Please specify the password.

230 Login successful.
ftp> 
ftp> hash
Hashmarkierungsdruck EIN FTP: (2048 Bytes/Hash).
ftp> ascii
200 Switching to ASCII mode.
ftp> 
ftp> lcd C:\SAT\VUplus2\root\etc\tuxbox
Lokales Verzeichnis jetzt C:\SAT\VUplus2\root\etc\tuxbox
ftp> cd /etc/tuxbox
250 Directory successfully changed.
ftp> put satellites.xml
200 PORT command successful. Consider using PASV.
**425 Failed to establish connection.**
ftp> 
ftp> prompt
Interaktivmodus AUS .
ftp> 
ftp> by
221 Goodbye.



ftp> open IP-BOX
Verbindung mit IP-BOX wurde hergestellt.
220 (vsFTPd 3.0.2)
200 Always in UTF8 mode.
Benutzer (IP-BOX:(none)): 
331 Please specify the password.

230 Login successful.
ftp> 
ftp> hash
Hashmarkierungsdruck EIN FTP: (2048 Bytes/Hash).
ftp> binary
200 Switching to Binary mode.
ftp> 
ftp> lcd C:\SAT\VUplus2\root\etc\tuxbox
Lokales Verzeichnis jetzt C:\SAT\VUplus2\root\etc\tuxbox
ftp> cd /etc/tuxbox
250 Directory successfully changed.
ftp> put satellites.xml
200 PORT command successful. Consider using PASV.
**425 Failed to establish connection.**
ftp> 
ftp> prompt
Interaktivmodus AUS .
ftp> 
ftp> by
221 Goodbye.

Firewall ist freigegeben für ftp
Interessant ist, dass ein zweiter Rechner im Netz hängt und mit dem geht es einwandfrei.
Der Fehler muss irgendwo im Bereich dieses Rechners liegen, ftp-Programme funktionieren aber.