*without a scheduling system On 6/6/06, x1 <caldridge / gmail.com> wrote: > I would either fix cron or use > at(http://en.wikipedia.org/wiki/At_(Unix_command)) > > While all these options work, in a production environment I wouldnt > feel right with a scheduling system of some sort. autosys/cron/at etc. > > > On 6/6/06, Hunter <walkerhunter / gmail.com> wrote: > > Jeff Pritchard wrote: > > > Not to be contrarian, but pickaxe page 180 says that ARGV[0] is not the > > > name of the program (unlike in C). There's other stuff I don't get > > > about your snippet as well. > > > Why ["ruby" + ARGV]???? Seems like you're using + to add an array to a > > > string? Can you explain it for us newbies? > > > > > > Working from Pickaxe page 180 I would have come up with something like: > > > sleep 180 # obvious > > > pieces = [ruby, $0].concat(ARGV) # $0 is program name > > > exec pieces.join(' ') # to string and execute it > > > > > > BTW, many rubyist's would, I think, stick the .join(' ') on the end of > > > the array composition, like this: > > > exec [ruby, $0].concat(ARGV).join(' ') > > > > > > Is there a move away from such Perlish pursuits, or are you still > > > considered a "Sheila" if you split things like this up into more easily > > > understandable pieces? > > > > > > thanks, > > > jp > > > > > > > > > unknown wrote: > > >> On Wed, 7 Jun 2006, Hunter Walker wrote: > > >> > > >>> > > >>> -- > > >>> Posted via http://www.ruby-forum.com/. > > >> > > >> > > >> sleep 180 > > >> exec ["ruby" + ARGV].join(' ') > > >> > > >> -a > > > > I just got an error when I tried the code below: > > > > exec ["ruby" + ARGV].join(' ') > > > > I'll try the code you suggested, JP. Thanks! > > > > -- > > Posted via http://www.ruby-forum.com/. > > > > >