From: Daniel Berger Date: 2010-03-04T04:57:24+09:00 Subject: Re: A gem for handling temporary file(s)? On Mar 3, 12:28 am, botp wrote: > On Wed, Mar 3, 2010 at 10:19 AM, Albert Schlef wrote: > > I'm writing a program that needs to generate two or three temporary > > files. > > > (Specifically: my program runs a shell command and I need to pass the > > shell command a path to a non-existing file which it will dump data to.) > > man mktemp > man tempfile > > > Is there a 'gem' that manages these things? Preferably it should remove > > the files when the script finishes or whatever. > > it is builtin in ruby. but in this case, you'd better do it all in ruby... Bah. Use file-temp. gem install file-temp Regards, Dan