Hi Guys,
I am very new to Ruby and am trying to debug a ruby script(package)
where a scheduled job kicks binary (main.exe, windows platform)
mid-night every night.

questions i have are...(and i did go through fair amount tutorials, info
on ruby and eee but couldnt figure out)
1. how %tempdir% variable is set, by default when job runs on schedule,
it creates folder eee.main.exennn (nnn is number) and dumps below
folders and files in default user directory.
folders
app
bin
lib

files
bootstrap.rb
eee.gz
eee.info
empty.rb

i don't want these folders getting created and keep growing, i thought
eee cleans up tempdir once done...

i can probably right a script to keep cleaning up these regularly but am
trying to figure out cleaner , ruby way of doing it.

1) what could be not set properly that it keeps creating these folders?
2) do i need these folders at all?
3) how to stop creating these folders? i would be happy if it created
one folder and would over-write it rather creating a new folder
extensions eee.main.exe.1 and 2 and 3..., basically i could set
%tempdir%, i would think it wont pick new extension.

below is package
d bin
f bin\digest.so (24663)
f bin\etc.so (20561)
f bin\fast_xs.so (5632)
f bin\fcntl.so (20565)
f bin\hpricot_scan.so (71680)
f bin\libeay32.dll (1077248)
f bin\md5.so (24664)
f bin\msvcrt-ruby18.dll (892998)
f bin\msvcrt.dll (271632)
f bin\openssl.so (180313)
f bin\ruby.exe (20541)
f bin\rubyw.exe (20542)
f bin\socket.so (45143)
f bin\sqlite3_api.so (55296)
f bin\ssleay32.dll (200704)
f bin\stringio.so (28763)
f bin\syck.so (122963)
f bin\thread.so (24663)
f bin\Win32API.so (20571)
d lib
d lib\date
f lib\date\format.rb (26717)
f lib\date.rb (52168)
d lib\digest
f lib\digest\md5.so (24664)
f lib\digest.rb (1145)
f lib\digest.so (24663)
f lib\etc.so (20561)
d lib\ev
f lib\ev\ftools.rb (4338)
f lib\fcntl.so (20565)
f lib\fileutils.rb (43014)
f lib\ftools.rb (6316)
d lib\net
f lib\net\http.rb (65307)
f lib\net\https.rb (4383)
f lib\net\protocol.rb (7810)
f lib\net\smtp.rb (20328)
f lib\open-uri.rb (20974)
d lib\openssl
f lib\openssl\bn.rb (637)
f lib\openssl\buffering.rb (3791)
f lib\openssl\cipher.rb (1333)
f lib\openssl\digest.rb (1197)
f lib\openssl\ssl.rb (3102)
f lib\openssl\x509.rb (4444)
f lib\openssl.rb (508)
f lib\openssl.so (180313)
f lib\parsedate.rb (1359)
f lib\pp.rb (16103)
f lib\prettyprint.rb (18775)
f lib\rational.rb (11847)
f lib\rbconfig.rb (6078)
d lib\rubygems
f lib\rubygems\builder.rb (2130)
f lib\rubygems\config_file.rb (7274)
f lib\rubygems\custom_require.rb (1200)
f lib\rubygems\defaults.rb (1890)
f lib\rubygems\dependency.rb (2569)
f lib\rubygems\exceptions.rb (2236)
f lib\rubygems\gem_path_searcher.rb (2710)
f lib\rubygems\platform.rb (5236)
f lib\rubygems\requirement.rb (3709)
f lib\rubygems\rubygems_version.rb (133)
f lib\rubygems\source_index.rb (14240)
f lib\rubygems\specification.rb (33875)
f lib\rubygems\user_interaction.rb (7553)
f lib\rubygems\version.rb (3563)
f lib\rubygems.rb (22155)
d lib\rubyscript2exe.gems
d lib\rubyscript2exe.gems\gems
d lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32
f lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\CHANGELOG
(3609)
f lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\COPYING
(1048)
d lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\ext
d lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\ext\fast_xs
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\ext\fast_xs\extconf.rb
(95)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\ext\fast_xs\FastXsService.java
(41946)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\ext\fast_xs\fast_xs.c
(4928)
d
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\ext\hpricot_scan
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\ext\hpricot_scan\extconf.rb
(102)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\ext\hpricot_scan\HpricotScanService.java
(56491)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\ext\hpricot_scan\hpricot_common.rl
(2867)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\ext\hpricot_scan\hpricot_gram.c
(28998)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\ext\hpricot_scan\hpricot_gram.h
(396)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\ext\hpricot_scan\hpricot_scan.c
(121800)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\ext\hpricot_scan\hpricot_scan.h
(1930)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\ext\hpricot_scan\hpricot_scan.java.rl
(10813)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\ext\hpricot_scan\hpricot_scan.rl
(6980)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\ext\hpricot_scan\test.rb
(153)
d lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\extras
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\extras\mingw-rbconfig.rb
(6535)
d lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\lib
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\lib\fast_xs.so
(5632)
d lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\lib\hpricot
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\lib\hpricot\blankslate.rb
(1860)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\lib\hpricot\builder.rb
(6350)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\lib\hpricot\elements.rb
(15315)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\lib\hpricot\htmlinfo.rb
(37240)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\lib\hpricot\inspect.rb
(2134)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\lib\hpricot\modules.rb
(1406)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\lib\hpricot\parse.rb
(9032)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\lib\hpricot\tag.rb
(5676)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\lib\hpricot\tags.rb
(6466)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\lib\hpricot\traverse.rb
(24938)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\lib\hpricot\xchar.rb
(3038)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\lib\hpricot.rb
(1081)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\lib\hpricot_scan.so
(71680)
f lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\Rakefile
(7800)
f lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\README (9581)
d lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\test
d lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\test\files
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\test\files\basic.xhtml
(695)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\test\files\boingboing.html
(130080)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\test\files\cy0.html
(589362)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\test\files\immob.html
(31611)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\test\files\pace_application.html
(43104)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\test\files\tenderlove.html
(555)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\test\files\uswebgen.html
(17068)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\test\files\utf8.html
(48284)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\test\files\week9.html
(112289)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\test\files\why.xml
(1778)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\test\load_files.rb
(210)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\test\test_alter.rb
(2748)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\test\test_builder.rb
(1069)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\test\test_parser.rb
(14420)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\test\test_paths.rb
(803)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\test\test_preserved.rb
(2323)
f
lib\rubyscript2exe.gems\gems\hpricot-0.6.164-x86-mswin32\test\test_xml.rb
(931)
d lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32
f
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\.require_paths
(15)
f
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\ChangeLog.cvs
(3042)
d lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\ext
d
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\ext\sqlite3_api
f
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\ext\sqlite3_api\extconf.rb
(264)
f
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\ext\sqlite3_api\sqlite3_api.i
(10941)
f
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\ext\sqlite3_api\sqlite3_api_wrap.c
(162630)
d lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\faq
f lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\faq\faq.rb
(3174)
f
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\faq\faq.yml
(11985)
f
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\History.txt
(2365)
d lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\lib
d lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\lib\1.8
f
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\lib\1.8\sqlite3_api.so
(55296)
d lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\lib\1.9
f
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\lib\1.9\sqlite3_api.so
(57344)
d
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\lib\sqlite3
f
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\lib\sqlite3\constants.rb
(1745)
f
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\lib\sqlite3\database.rb
(24906)
d
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\lib\sqlite3\driver
d
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\lib\sqlite3\driver\dl
f
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\lib\sqlite3\driver\dl\api.rb
(6025)
f
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\lib\sqlite3\driver\dl\driver.rb
(8669)
d
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\lib\sqlite3\driver\native
f
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\lib\sqlite3\driver\native\driver.rb
(6002)
f
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\lib\sqlite3\errors.rb
(2307)
f
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\lib\sqlite3\pragmas.rb
(7480)
f
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\lib\sqlite3\resultset.rb
(5152)
f
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\lib\sqlite3\statement.rb
(6918)
f
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\lib\sqlite3\translator.rb
(3738)
f
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\lib\sqlite3\value.rb
(1057)
f
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\lib\sqlite3\version.rb
(206)
f
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\lib\sqlite3.rb
(27)
f lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\LICENSE
(1500)
f
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\Manifest.txt
(893)
f lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\Rakefile
(112)
f lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\README.txt
(1887)
f lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\setup.rb
(28399)
d lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\tasks
f
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\tasks\benchmark.rake
(172)
f
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\tasks\faq.rake
(188)
f
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\tasks\gem.rake
(963)
f
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\tasks\native.rake
(1195)
f
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\tasks\vendor_sqlite3.rake
(3319)
d lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\test
f lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\test\bm.rb
(2868)
d
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\test\driver
d
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\test\driver\dl
f
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\test\driver\dl\tc_driver.rb
(10723)
f
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\test\helper.rb
(1475)
f
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\test\native-vs-dl.rb
(2785)
f
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\test\test_database.rb
(6195)
f
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\test\test_errors.rb
(511)
f
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\test\test_integration.rb
(14642)
f
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\test\test_integration_open_close.rb
(753)
f
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\test\test_integration_pending.rb
(2259)
f
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\test\test_integration_resultset.rb
(4363)
f
lib\rubyscript2exe.gems\gems\sqlite3-ruby-1.2.5-x86-mswin32\test\test_integration_statement.rb
(5145)
d lib\rubyscript2exe.gems\specifications
f
lib\rubyscript2exe.gems\specifications\hpricot-0.6.164-x86-mswin32.gemspec
(2450)
f
lib\rubyscript2exe.gems\specifications\sqlite3-ruby-1.2.5-x86-mswin32.gemspec
(3198)
f lib\rubyscript2exe.rb (2210)
f lib\socket.so (45143)
f lib\StatsDb.rb (1335)
f lib\stringio.so (28763)
f lib\syck.so (122963)
f lib\thread.rb (104)
f lib\thread.so (24663)
f lib\time.rb (32241)
f lib\timeout.rb (2938)
f lib\ubygems.rb (268)
d lib\uri
f lib\uri\common.rb (17572)
f lib\uri\ftp.rb (3453)
f lib\uri\generic.rb (24181)
f lib\uri\http.rb (2650)
f lib\uri\https.rb (498)
f lib\uri\ldap.rb (3342)
f lib\uri\mailto.rb (6684)
f lib\uri.rb (694)
f lib\VoyagerServer.rb (171)
f lib\Win32API.so (20571)
d lib\yaml
f lib\yaml\basenode.rb (6128)
f lib\yaml\constants.rb (1186)
f lib\yaml\error.rb (1069)
f lib\yaml\rubytypes.rb (13035)
f lib\yaml\stream.rb (700)
f lib\yaml\syck.rb (271)
f lib\yaml\tag.rb (3156)
f lib\yaml\types.rb (5002)
f lib\yaml\ypath.rb (1328)
f lib\yaml.rb (12657)
f bootstrap.rb (2642)
f empty.rb (0)
d app
f app\main.rb (3497)
i eee.info
c %tempdir%\bin\ruby.exe -r %tempdir%\bootstrap.rb -T1
%tempdir%\empty.rb %tempdir%\app\main.rb


any help is greatly appreciated.

Thanks much for help
Abi

-- 
Posted via http://www.ruby-forum.com/.