Re: backtick commands and stderr

From: Alexandru P. [mailto:[email protected]]

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

On 10/27/06, Gavin K. [email protected] wrote:

From: Alexandru P. [mailto:[email protected]]

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?

./alex

.w( the_mindstorm )p.

On 10/27/06, Alexandru P. [email protected]
wrote:

Can you please add some more details?

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

./alex

.w( the_mindstorm )p.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs