On Wed, Jul 15, 2009 at 9:23 PM, Tom Cloyd<tomcloyd / comcast.net> wrote: > Since - > * I'm allowed one command per "system()" call, and > * upon return from that call, the present working dir is reset to its > prior state... > > my only option appears to be to issue the commands I'd use in a manual > interaction with the CLI from within a script file, and that's what I'm > trying to do. It is possible to change the working directory from within ruby: > cd / > irb irb(main):001:0> puts `pwd` / => nil irb(main):002:0> Dir.chdir("/tmp") { puts `pwd` } /tmp => nil irb(main):003:0> puts `pwd` / => nil irb(main):004:0> Dir.chdir("/var/tmp") => 0 irb(main):005:0> puts `pwd` /var/tmp => nil