On Mar 19, 2009, at 2:19 PM, Sonny Chee wrote: > Hey Guys, > > The following system call (in Ubuntu 8.04) gets the associated result. > > $> ps aux | grep myProgram > > 1000 15152 59.2 1.3 33244 28652 pts/1 S 10:48 0:02 ruby > /home/workplace/fireknife/script/runner -e test ARGV.push 1; require > 'rating_profile.rb'; myProgram.new > > However, when I attempt the following command in the console I get a > truncated result: > >> res = `ps aux | grep 15152` > > 1000 15152 59.2 1.3 33244 28652 pts/1 S 10:48 0:02 ruby > /home/workpla\n > > If I expand the terminal window, and re-execute in rails console, I > get > more of the command string appearing. This isn't just a display issue, > since the following command in the rails console will yield an empty > result... unless the terminal window is expanded to its maximum width > *and* really small font... > >> res = `ps aux | grep myProgram` > > Is there a rails console configuration file I can adjust? Any help > would be appreciated. > > Sonny. > --
No, but you could expand your options from aux to auxww or use --cols --columns or --width options to set a width. -Rob Rob Biedenharn http://agileconsultingllc.com r...@agileconsultingllc.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---