“Quick” and “Dirty” Network File Sharing, python file sharing...
![]() ![]() ![]() ![]() ![]() |
“Quick” and “Dirty” Network File Sharing, python file sharing...
|
|
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: 148 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) ![]() 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 |
![]() ![]() ![]() ![]() |
| Lo-Fi Version | Time is now: 17th March 2010 - 11:41 AM |