[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: backtick commands and stderr

Gavin Kistner

10/26/2006 11:26:00 PM

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


2 Answers

Alexandru Popescu

10/26/2006 11:30:00 PM

0

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?

/alex
--
w( the_mindstorm )p.

>
>

Alexandru Popescu

10/26/2006 11:35:00 PM

0

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?
>

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

/alex
--
w( the_mindstorm )p.

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