# %tempdir% location and folder clean up?

**URL:** <https://rubytalk.org/t/tempdir-location-and-folder-clean-up/67818>\
**Category:** ruby-talk\
**Created:** [6 May 2013 18:21 UTC](https://rubytalk.org/t/tempdir-location-and-folder-clean-up/67818 "2013-05-06T18:21:43Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![7stud2](https://avatars.discourse-cdn.com/v4/letter/7/9de053/32.png) [@7stud2](https://rubytalk.org/u/7stud2)\
**Post date:** [6 May 2013 18:21 UTC](https://rubytalk.org/t/tempdir-location-and-folder-clean-up/67818/1 "2013-05-06T18:21:43Z")

</div>

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](http://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](http://digest.so) (24663)  
f bin\[etc.so](http://etc.so) (20561)  
f bin\fast\_xs.so (5632)  
f bin\[fcntl.so](http://fcntl.so) (20565)  
f bin\hpricot\_scan.so (71680)  
f bin\libeay32.dll (1077248)  
f bin\[md5.so](http://md5.so) (24664)  
f bin\msvcrt-ruby18.dll (892998)  
f bin\msvcrt.dll (271632)  
f bin\[openssl.so](http://openssl.so) (180313)  
f bin\ruby.exe (20541)  
f bin\rubyw.exe (20542)  
f bin\[socket.so](http://socket.so) (45143)  
f bin\sqlite3\_api.so (55296)  
f bin\ssleay32.dll (200704)  
f bin\[stringio.so](http://stringio.so) (28763)  
f bin\[syck.so](http://syck.so) (122963)  
f bin\[thread.so](http://thread.so) (24663)  
f bin\[Win32API.so](http://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](http://md5.so) (24664)  
f lib\digest.rb (1145)  
f lib\[digest.so](http://digest.so) (24663)  
f lib\[etc.so](http://etc.so) (20561)  
d lib\ev  
f lib\ev\ftools.rb (4338)  
f lib\[fcntl.so](http://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](http://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](http://socket.so) (45143)  
f lib\StatsDb.rb (1335)  
f lib\[stringio.so](http://stringio.so) (28763)  
f lib\[syck.so](http://syck.so) (122963)  
f lib\thread.rb (104)  
f lib\[thread.so](http://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](http://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](http://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/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Tamara\_Temple1](https://avatars.discourse-cdn.com/v4/letter/t/5f9b8f/32.png) [@Tamara\_Temple1](https://rubytalk.org/u/Tamara_Temple1)\
**Post date:** [7 May 2013 01:54 UTC](https://rubytalk.org/t/tempdir-location-and-folder-clean-up/67818/2 "2013-05-07T01:54:14Z")

</div>

I don't see a bit of code there.

> **···**
>
> On Mon, May 6, 2013 at 1:21 PM, Abinash Y. \<lists@ruby-forum.com\> wrote:
> 
> > 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.

---

<div class="post-metadata">

**Author:** ![7stud2](https://avatars.discourse-cdn.com/v4/letter/7/9de053/32.png) [@7stud2](https://rubytalk.org/u/7stud2)\
**Post date:** [7 May 2013 15:02 UTC](https://rubytalk.org/t/tempdir-location-and-folder-clean-up/67818/3 "2013-05-07T15:02:47Z")

</div>

i thought these settings would be somewhere in env setup or config  
files.  
here is the code attached...

Thanks  
Abi

Attachments:  
[http://www.ruby-forum.com/attachment/8399/main.rb](http://www.ruby-forum.com/attachment/8399/main.rb)  
[http://www.ruby-forum.com/attachment/8400/bootstrap.rb](http://www.ruby-forum.com/attachment/8400/bootstrap.rb)

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![7stud2](https://avatars.discourse-cdn.com/v4/letter/7/9de053/32.png) [@7stud2](https://rubytalk.org/u/7stud2)\
**Post date:** [8 May 2013 05:11 UTC](https://rubytalk.org/t/tempdir-location-and-folder-clean-up/67818/4 "2013-05-08T05:11:46Z")

</div>

from "main.exe --eee-list"

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![7stud2](https://avatars.discourse-cdn.com/v4/letter/7/9de053/32.png) [@7stud2](https://rubytalk.org/u/7stud2)\
**Post date:** [9 May 2013 14:23 UTC](https://rubytalk.org/t/tempdir-location-and-folder-clean-up/67818/5 "2013-05-09T14:23:08Z")

</div>

tamouse,  
if you aren't understanding what i am writing then you don't know what i  
am asking and obviously can't really help.

thanks for time though.

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![7stud2](https://avatars.discourse-cdn.com/v4/letter/7/9de053/32.png) [@7stud2](https://rubytalk.org/u/7stud2)\
**Post date:** [9 May 2013 18:30 UTC](https://rubytalk.org/t/tempdir-location-and-folder-clean-up/67818/6 "2013-05-09T18:30:12Z")

</div>

I was referring to %tempdir% variable used by eee.exe.  
below link has all info about eee  
[http://www.erikveen.dds.nl/eee/#info](http://www.erikveen.dds.nl/eee/#info)

1. main.exe which is packaged by eee.exe and is executed by scheduled  
tasks,

2. When running the application, EEE generates a temporary directory and  
parses the headers it includes, chronologically: f-headers result in  
files in the tempdir, r-headers result in a directory tree in the  
tempdir, d-headers result in an empty directory in the tempdir,  
i-headers result in an INFO-file in the tempdir, c-actions are performed  
in the directory in which the user started the application.

Every header is scanned for "variables" (lowercase!): %tempdir% is  
replaced by the temporary directory EEE created for dropping its files

3. above results in dumps at %tempdir%\eee\eee.appName.exe.nnn, in my  
case  
C:\Documents and Settings\Default User\eee\eee.main.exe.1

4. next execution creates another dir, same location with name  
eee.main.exe.2 and so on.

5. what i am looking for is...  
a) ability to re-direct output to my choice of dir., say C:\logs and not  
necessarily C:\Documents and Settings\Default User  
b) for it to not create next folder(e.g. not create main.exe.1,  
main.exe.2, 3, 4, ...99), instead over-write or dump in one folder. so  
it doesn't keep hogging disk-space.

- I did notice, eee picks my %USERPROFILE% env. variable, creates eee  
folder under it and uses it as temporary directory.

Abi

Attachments:  
[http://www.ruby-forum.com/attachment/8403/eeeDump.jpg](http://www.ruby-forum.com/attachment/8403/eeeDump.jpg)

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![7stud2](https://avatars.discourse-cdn.com/v4/letter/7/9de053/32.png) [@7stud2](https://rubytalk.org/u/7stud2)\
**Post date:** [10 May 2013 14:46 UTC](https://rubytalk.org/t/tempdir-location-and-folder-clean-up/67818/7 "2013-05-10T14:46:49Z")

</div>

tamouse,  
there are posts around same in this forum.  
while i appreciate your enthusiasm to help me, this is exactly why i  
said "if you aren't understanding what i am writing then you don't know  
what i  
am asking and obviously can't really help".

like any other forum post, it was for all those who know what i am  
talking about and not for many of those that didn't.

while we can keep exchanging these posts that do not help any of us, i  
am sure we both have meaningful things to do, certainly i do.

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Tamara\_Temple1](https://avatars.discourse-cdn.com/v4/letter/t/5f9b8f/32.png) [@Tamara\_Temple1](https://rubytalk.org/u/Tamara_Temple1)\
**Post date:** [8 May 2013 02:14 UTC](https://rubytalk.org/t/tempdir-location-and-folder-clean-up/67818/8 "2013-05-08T02:14:01Z")

</div>

> i thought these settings would be somewhere in env setup or config  
> files.  
> here is the code attached...
> 
> Thanks  
> Abi
> 
> Attachments:  
> [http://www.ruby-forum.com/attachment/8399/main.rb](http://www.ruby-forum.com/attachment/8399/main.rb)  
> [http://www.ruby-forum.com/attachment/8400/bootstrap.rb](http://www.ruby-forum.com/attachment/8400/bootstrap.rb)

Those are what you're trying to run. What is this script you're trying to use:

> trying to debug a ruby script(package)

Where did that long output you pasted in the first message come from?

> **···**
>
> On Tue, May 7, 2013 at 10:02 AM, Abinash Y. \<lists@ruby-forum.com\> wrote:

---

<div class="post-metadata">

**Author:** ![Tamara\_Temple1](https://avatars.discourse-cdn.com/v4/letter/t/5f9b8f/32.png) [@Tamara\_Temple1](https://rubytalk.org/u/Tamara_Temple1)\
**Post date:** [9 May 2013 04:07 UTC](https://rubytalk.org/t/tempdir-location-and-folder-clean-up/67818/9 "2013-05-09T04:07:49Z")

</div>

This is quite a useless reply. Please quote the relevant parts of the  
messages you are responding to.

I don't know what you wrote represents. What is 'from'? What  
environment is it running in? what is the script you are trying to use  
to call main.exe? If you really want help, stop being so mysterious.

> **···**
>
> On Wed, May 8, 2013 at 12:11 AM, Abinash Y. \<lists@ruby-forum.com\> wrote:
> 
> > from "main.exe --eee-list"
> > 
> > --  
> > Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

---

<div class="post-metadata">

**Author:** ![Hassan\_Schroeder](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/hassan_schroeder/32/1838_2.png) [@Hassan\_Schroeder](https://rubytalk.org/u/Hassan_Schroeder)\
**Post date:** [9 May 2013 14:43 UTC](https://rubytalk.org/t/tempdir-location-and-folder-clean-up/67818/10 "2013-05-09T14:43:48Z")

</div>

If you're not getting helpful responses, maybe it's because no one  
understands what you're writing. And poor reply quoting doesn't help  
that.

You might want to start over explaining the problem. Better yet,  
create a simplest possible reproducible test case.

> **···**
>
> On Thu, May 9, 2013 at 7:23 AM, Abinash Y. \<lists@ruby-forum.com\> wrote:
> 
> > if you aren't understanding what i am writing ...
> 
> --  
> Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
> 
> > **[Hassan Schroeder on about.me](https://about.me/hassanschroeder)**
> >
> > I use about.me to show people what matters most to me.
> 
> twitter: @hassan

---

<div class="post-metadata">

**Author:** ![stomar](https://avatars.discourse-cdn.com/v4/letter/s/41988e/32.png) [@stomar](https://rubytalk.org/u/stomar)\
**Post date:** [9 May 2013 17:32 UTC](https://rubytalk.org/t/tempdir-location-and-folder-clean-up/67818/11 "2013-05-09T17:32:52Z")

</div>

Abinash, nobody will be able to help because nobody can understand  
what you are asking. Tamouse at least was trying to make you reveal  
some vital information that you failed to provide in the first place.

Only few of us are clairvoyant, so \*you\* must provide the information.

> **···**
>
> Am 09.05.2013 16:23, schrieb Abinash Y.:
> 
> > tamouse,  
> > if you aren't understanding what i am writing then you don't know what i  
> > am asking and obviously can't really help.
> > 
> > thanks for time though.
> 
> --  
> \<[https://github.com/stomar/&gt](https://github.com/stomar/&gt);

---

<div class="post-metadata">

**Author:** ![Tamara\_Temple1](https://avatars.discourse-cdn.com/v4/letter/t/5f9b8f/32.png) [@Tamara\_Temple1](https://rubytalk.org/u/Tamara_Temple1)\
**Post date:** [10 May 2013 03:16 UTC](https://rubytalk.org/t/tempdir-location-and-folder-clean-up/67818/12 "2013-05-10T03:16:48Z")

</div>

So maybe this is the problem. You're asking about a windows program  
written in Pascal on a Ruby list where most of the constituents work  
with a flavour of unix.

> **···**
>
> On Thu, May 9, 2013 at 1:30 PM, Abinash Y. \<lists@ruby-forum.com\> wrote:
> 
> > I was referring to %tempdir% variable used by eee.exe.  
> > below link has all info about eee  
> > [EEE - Environment Embedding Executable](http://www.erikveen.dds.nl/eee/#info)
