Backtick commands and stderr

When executing a system op using the backtick method, the standard
output is caught and returned in the assigned variable:

output= `ls -Al`

I am wondering what happens with the standard error output?

I believe you want to look at open3 or open4

···

From: Alexandru Popescu [mailto:the.mindstorm.mailinglist@gmail.com]

Can you please add some more details?

./alex

···

On 10/27/06, Gavin Kistner <gavin.kistner@anark.com> wrote:

From: Alexandru Popescu [mailto:the.mindstorm.mailinglist@gmail.com]
> When executing a system op using the backtick method, the standard
> output is caught and returned in the assigned variable:
>
> output= `ls -Al`
>
> I am wondering what happens with the standard error output?

I believe you want to look at open3 or open4

--
.w( the_mindstorm )p.

... found something here:
http://www.ruby-doc.org/stdlib/libdoc/open3/rdoc/index.html, but it
doesn't look like working on Windows.

./alex

···

On 10/27/06, Alexandru Popescu <the.mindstorm.mailinglist@gmail.com> wrote:

On 10/27/06, Gavin Kistner <gavin.kistner@anark.com> wrote:
> From: Alexandru Popescu [mailto:the.mindstorm.mailinglist@gmail.com]
> > When executing a system op using the backtick method, the standard
> > output is caught and returned in the assigned variable:
> >
> > output= `ls -Al`
> >
> > I am wondering what happens with the standard error output?
>
> I believe you want to look at open3 or open4
>

Can you please add some more details?

--
.w( the_mindstorm )p.

./alex
--
.w( the_mindstorm )p.

>