# Re: ruby-a-day: admin tip: sharing files/folder

**URL:** <https://www.ruby-forum.com/t/re-ruby-a-day-admin-tip-sharing-files-folder/101694>\
**Category:** Ruby\
**Created:** [August 7, 2006, 2:36pm UTC](https://www.ruby-forum.com/t/re-ruby-a-day-admin-tip-sharing-files-folder/101694 "2006-08-07T14:36:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![PeSSSSaS\_Botp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ecd19e/32.png) [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Post date:** [August 7, 2006, 2:36pm UTC](https://www.ruby-forum.com/t/re-ruby-a-day-admin-tip-sharing-files-folder/101694/1 "2006-08-07T14:36:27Z")

</div>

arrggh, pls ignore!  
was trying it send it to a local ruby group.

very sorry for the noise.  
-botp

# -----Original Message-----

# From: Peña, Botp

# Sent: Monday, August 07, 2006 8:34 PM

# To: ‘removed\_email\_address@domain.invalid’

# Subject: ruby-a-day: admin tip: sharing files/folder

# 

# Hi,

# 

# many times, we share files across different platforms (unix,

# windows, mac) and accross the net. no probs; w just ruby, you

# can publish your folder in a few seconds. try it like this,

# 

# 1 go to the folder you want to publish

# 2 run the ff ruby script:

# 

# #-----start----

# require ‘webrick’

# 

# port=rand(2000)+60000;

# 

# server=WEBrick::HTTPServer.new(

# :Port =\> port,

# :DocumentRoot =\> Dir::pwd,

# :BindAddress =\> ‘0.0.0.0’,

# :Logger =\> WEBrick::Log.new(nil,nil)

# )

# 

# trap “INT” do server.shutdown end

# server.start

# #-----end----

# 

# 

# 

# this will publish your current folders/file(Dir::pwd) at a

# random port (60000-62000). Press ctrl-c to stop your mini web server.

# 

# To access your file/folder, just use any browser or wget…

# 

# happy rubying,

# -botp

#
