From: Kyle Schmitt Date: 2008-08-02T04:59:01+09:00 Subject: Re: Capturing shell command output and success? On Fri, Aug 1, 2008 at 2:54 PM, Ståle Z.H wrote: > Not quite sure if I understood you right, but you could probably do > something like this: > res = `command` # note: ` not ' > > This executes 'command' and stores the output in res. Ståle, The problem with that is that it doesn't indicate whether the command succeeded or failed. By the way, %x{ls /tmp} is identical to `ls /tmp`, it's just easier to read :) --Kyle