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

  • circuschina

    circuschina

    16 Mart 2007
  • FlippinWindows | #1 Windows Tutorial Channel!

    FlippinWindo

    23 Mayıs 2010
  • MagmaRhino

    MagmaRhino

    16 Temmuz 2011