Compartir un directorio por http usando Python

Si queremos compartir un directorio con acceso mediante un navegador, de una forma rápida y sencilla, atentos a este tip, gracias al artículo de RevistaLinux.net

Necesitamos tener, eso si, instalado el intérprete de Python en nuestro sistema. No ponemos en el directorio en cuestión con ‘cd’ y luego ejecutamos la línea siguiente:

$ python -m SimpleHTTPServer

Y ahora con un navegador solo tenemos que indicar la ip del equipo e indicar acceder por el puerto 8000 : http://localhost:8000 Podemos indicar otro puerto a usar de la siguiente manera:

$ python -m SimpleHTTPServer 8200

Así de sencillo, gracias a Python :-)

Tags »

Author:
Date: Thursday, 16. September 2010 12:27
Trackback: Trackback-URL Category: Tips

Feed for the post RSS 2.0 Comment this post

1 Comment

  1. 1

    Como me esta molando python… quien me lo iba a decir a mi….

Submit comment