Vous n’êtes pas connecté.
Citation de "DrStrange"
...laufen denn alle Automaten noch?
...und der Tag wird gut!
Citation de "Tom"
BTW: Wieviel Aufwand ist es eine Datei (binary, passive, no-proxy) per FTP auf einen Server zu schmeissen?
|
|
Code source |
1 2 3 4 5 6 7 8 9 |
from __future__ import with_statement
import ftplib
FILENAME = 'foo.dat'
ftp = ftplib.FTP('ftp.example.com', 'someuser', 'somepass')
with open(FILENAME, 'rb') as f:
ftp.storbinary('STOR filename_on_server.dat', f)
ftp.quit()
|
Citation de "Anonymous"
Tja, ich hab aber kein Python aufm Router. Hat da ja nix verloren.. Das sollte ja wohl irgendwie anders lösbar sein als mit nem Pythonscript..


-