Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #4486

Re: Shell pipeline in Ruby?

X-FeedAbuse http://nntpfeed.proxad.net/abuse.pl feeded by 88.191.16.109
Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!nntpfeed.proxad.net!nospam.fr.eu.org!talisker.lacave.net!lacave.net!not-for-mail
From Roger Pack <rogerpack2005@gmail.com>
Newsgroups comp.lang.ruby
Subject Re: Shell pipeline in Ruby?
Date Fri, 13 May 2011 08:44:09 -0500
Organization Service de news de lacave.net
Lines 16
Message-ID <99dbf73342ba38c9adee7fd961759745@ruby-forum.com> (permalink)
References <BANLkTik15O2NLu4grCfhbtF3Ws6N_c4Qtg@mail.gmail.com> <00489613d64495c765cada2702102dd7@ruby-forum.com> <BANLkTi==5C-P_GiAuu3hSwpgXiVNU1DHaQ@mail.gmail.com>
NNTP-Posting-Host bristol.highgroove.com
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 7bit
X-Trace talisker.lacave.net 1305294519 26913 65.111.164.187 (13 May 2011 13:48:39 GMT)
X-Complaints-To abuse@lacave.net
NNTP-Posting-Date Fri, 13 May 2011 13:48:39 +0000 (UTC)
In-Reply-To <BANLkTi==5C-P_GiAuu3hSwpgXiVNU1DHaQ@mail.gmail.com>
X-Received-From This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway
X-Mail-Count 383204
X-Ml-Name ruby-talk
X-Rubymirror Yes
X-Ruby-Talk <99dbf73342ba38c9adee7fd961759745@ruby-forum.com>
Xref x330-a1.tempe.blueboxinc.net comp.lang.ruby:4486

Show key headers only | View raw


> Unfortunately, this does not work.

Try it now, fixed the bug.

> Second, afaict the reopen method only changes the IOs at Ruby level,
> not the fd:s at C level so it's useless in this context.

Try it out.  This is, AFAIK, the "standard" way to pipeline processes, 
and works in 1.8 even.

GL!
-r

-- 
Posted via http://www.ruby-forum.com/.

Back to comp.lang.ruby | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Shell pipeline in Ruby? Michal Suchanek <hramrach@centrum.cz> - 2011-05-12 11:05 -0500
  Re: Shell pipeline in Ruby? Jos Backus <jos@catnook.com> - 2011-05-12 12:22 -0500
    Re: Shell pipeline in Ruby? Michal Suchanek <hramrach@centrum.cz> - 2011-05-12 14:41 -0500
      Re: Shell pipeline in Ruby? Stu <stu@rubyprogrammer.net> - 2011-05-12 14:54 -0500
        Re: Shell pipeline in Ruby? Michal Suchanek <hramrach@centrum.cz> - 2011-05-12 15:15 -0500
  Re: Shell pipeline in Ruby? 7stud -- <bbxx789_05ss@yahoo.com> - 2011-05-12 13:06 -0500
  Re: Shell pipeline in Ruby? Roger Pack <rogerpack2005@gmail.com> - 2011-05-12 22:13 -0500
    Re: Shell pipeline in Ruby? Michal Suchanek <hramrach@centrum.cz> - 2011-05-13 03:33 -0500
      Re: Shell pipeline in Ruby? Roger Pack <rogerpack2005@gmail.com> - 2011-05-13 08:44 -0500
    Re: Shell pipeline in Ruby? Roger Pack <rogerpack2005@gmail.com> - 2011-05-13 08:48 -0500
      Re: Shell pipeline in Ruby? Michal Suchanek <hramrach@centrum.cz> - 2011-05-13 13:14 -0500
  Re: Shell pipeline in Ruby? Robert Klemme <shortcutter@googlemail.com> - 2011-05-13 03:44 -0500
    Re: Shell pipeline in Ruby? Michal Suchanek <hramrach@centrum.cz> - 2011-05-13 08:27 -0500
      Re: Shell pipeline in Ruby? Robert Klemme <shortcutter@googlemail.com> - 2011-05-13 09:23 -0500
        Re: Shell pipeline in Ruby? Michal Suchanek <hramrach@centrum.cz> - 2011-05-13 12:44 -0500
  Re: Shell pipeline in Ruby? Michal Suchanek <hramrach@centrum.cz> - 2011-05-13 10:32 -0500
    Re: Shell pipeline in Ruby? Brian Candler <b.candler@pobox.com> - 2011-05-14 10:05 -0500
      Re: Shell pipeline in Ruby? Michal Suchanek <hramrach@centrum.cz> - 2011-05-16 06:05 -0500
  Re: Shell pipeline in Ruby? Brian Candler <b.candler@pobox.com> - 2011-05-14 10:14 -0500
  Re: Shell pipeline in Ruby? Michal Suchanek <hramrach@centrum.cz> - 2011-05-16 10:29 -0500

csiph-web