From: James Harrison Date: 2010-07-09T04:33:24+09:00 Subject: Re: Silencing Standard Error Have you tried just simply stderr? You could either run the script and have 2>/dev/null be the redirect, or inside the backticks I think you can safely use the same redirect. You can do it more ruby specific by redefining $STDERR, but that's probably overkill if it's a simple script. James On Jul 8, 2010, at 10:45 AM 7/8/10, David Calvin wrote: > > Hello, > > I am new here, so I apologize if this is a lame question. I have googled > for quite awhile trying to find out the answer to my question to no > avail. > > In a script, I am issuing this line: > > > returnAddress = `defaults read > /path/to/conappsqa.bundle/serverconfig serverAddress` > > Which reads a plist entry on my computer. If the plist entry is not > present then I get the following spew on the command line when I run the > script: > > > 2010-07-08 09:32:37.273 defaults[29326:40b] > The domain/default pair of (/path/to/conappsqa.bundle/serverconfig, > serverAddress) does not exist > > Is there a way I can eliminate this kind of spew? I just want to execute > the code and handle the error. I don't want all the mess. > > Any tips? > > Thanks. > -- > Posted via http://www.ruby-forum.com/. >