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

  • Dirty Loops

    Dirty Loops

    21 Mayıs 2007
  • HDstarcraft

    HDstarcraft

    12 Mayıs 2009
  • kev5124

    kev5124

    9 Kasım 2008