SORU
14 ŞUBAT 2011, PAZARTESİ


Tek satır server python ile ftp

Python bir satır bir komut basit bir ftp sunucu yapmak mümkün mü? Bir ftp sunucusu yüklemek zorunda kalmadan linux kutusu için dosyaları aktarmak için hızlı ve geçici olarak bu şekilde yapmak istiyorum. Bir şekilde python kütüphaneleri yerleşik kullanarak hiçbir ekstra yükleme yok yani tercihen.

CEVAP
14 ŞUBAT 2011, PAZARTESİ


Zorunlu Çarpık örnek:

twistd -n ftp

Ve muhtemelen yararlı:

twistd ftp --help

Usage: twistd [options] ftp [options].
WARNING: This FTP server is probably INSECURE do not use it.
Options:
  -p, --port=           set the port number [default: 2121]
  -r, --root=           define the root of the ftp-site. [default:
                    /usr/local/ftp]
  --userAnonymous=  Name of the anonymous user. [default: anonymous]
  --password-file=  username:password-style credentials database
  --version         
  --help            Display this help and exit.

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Android Developers

    Android Deve

    9 Kasım 2007
  • We've moved!

    We've moved!

    7 Ocak 2008
  • Paste Magazine

    Paste Magazi

    28 AĞUSTOS 2008