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

  • HuskyStarcraft

    HuskyStarcra

    4 HAZİRAN 2009
  • SVB International

    SVB Internat

    29 EKİM 2011
  • thelonelyisland

    thelonelyisl

    23 Aralık 2005