From: Kyle Schmitt Date: 2008-08-02T06:34:47+09:00 Subject: Re: Capturing shell command output and success? On Fri, Aug 1, 2008 at 3:19 PM, Ståle Z.H wrote: > The return value of the program is stored in $? as far as I can see. I > tested it on my laptop, and $? was set to 0 when the command succeeded > and 1 when it didn't. (Of course, the return value depends on the > program, but non-zero is generally considered failure.) Right, but standard error goes into lala land. I was hoping for something a bit cleaner than executing with %x then checking the $? value. I may try this systemu command...