Lowyat.NET Forums

Welcome Guest ( Log In | Register )

LYN wins Intel-Lenovo-Tangs Blogathon challenge. Thank you everybody!
 
RSS feedBump TopicReply to this topicStart new topicStart Poll

Outline · [ Standard ] · Linear+

> “Quick” and “Dirty” Network File Sharing, python file sharing...

jk.cheng
post Jul 1 2009, 12:29 PM
Show posts by this member only |This post's rating (0+, 0-) | Post #1


Getting Started
**

Group: Junior Member
Posts: 51
Ratings earned: 0+, 0-
Ratings given: 0+, 0-

Joined: Feb 2009
From: Kangar, Perlis, Malaysia






Original Article: “Quick” and “Dirty” Network File Sharing

Ever find yourself in need to share file over the network quickly, but find yourself lacking time to setup a proper NFS or samba share? Here’s a way to do this with the good old Python CLI.

First, go to the directory that you want to share, for example ~/Documents

CODE
[jk.cheng@desktop ~]$cd ~/Documents
[jk.cheng@desktop Documents]$


Then run this command “python -m SimpleHTTPServer”

CODE
[jk.cheng@desktop Documents]$ python -m SimpleHTTPServer
Serving HTTP on 0.0.0.0 port 8000 ...


You may access the folder from a remote computer using any webrowser using the url – http://60.53.190.30:8000/ (change the ip address or domain name accordingly)
user posted image

You may find this technique offers limited options to share files, but its a real time saver!

Original Article: “Quick” and “Dirty” Network File Sharing

This post has been edited by jk.cheng: Jul 1 2009, 02:17 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Bump TopicReply to this topicTopic OptionsStart new topic
 



----debug section please ignore----
Lo-Fi Version Time is now: 23rd November 2009 - 07:56 AM
All Rights Reserved 2003-2009 Vijandren Ramadass (~living on a prayer~)