# Open4

**URL:** <https://www.ruby-forum.com/t/open4/88129>\
**Category:** Ruby\
**Created:** [March 8, 2007, 11:51am UTC](https://www.ruby-forum.com/t/open4/88129 "2007-03-08T11:51:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hanan\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/41988e/32.png) [@Hanan\_M](https://www.ruby-forum.com/u/Hanan_M)\
**Post date:** [March 8, 2007, 11:51am UTC](https://www.ruby-forum.com/t/open4/88129/1 "2007-03-08T11:51:31Z")

</div>

Hello

I installed open4, but when i tried samples I got the following error:  
uninitialized constant fcntl::F\_SETFD. why??? please note that I am  
working  
on windows.  
Thank in advance

---

<div class="post-metadata">

**Author:** ![Hanan\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/41988e/32.png) [@Hanan\_M](https://www.ruby-forum.com/u/Hanan_M)\
**Post date:** [March 8, 2007, 3:32pm UTC](https://www.ruby-forum.com/t/open4/88129/2 "2007-03-08T15:32:09Z")

</div>

On 3/8/07, Hanan M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hello
> 
> I installed open4, but when i tried samples I got the following error:  
> uninitialized constant fcntl::F\_SETFD. why??? please note that I am working  
> on windows.  
> Thank in advance

open4 will not work on Windows – it is a Unix only library.For  
Windows there is popen4.

[http://rubyforge.org/projects/popen4/](http://rubyforge.org/projects/popen4/)

It does the same thing … but for Windows. Be forewarned that the  
possibility of blocking the program on a full pipe is very possible on  
the Windows platform. Ara and Tom P. had a good discussion about  
this last Thanksgiving.

[http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/9379](http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/9379)

Blessings,  
TwP

---

<div class="post-metadata">

**Author:** ![Hanan\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/41988e/32.png) [@Hanan\_M](https://www.ruby-forum.com/u/Hanan_M)\
**Post date:** [March 8, 2007, 4:04pm UTC](https://www.ruby-forum.com/t/open4/88129/3 "2007-03-08T16:04:15Z")

</div>

On Thu, 8 Mar 2007, Tim P. wrote:

> open4 will not work on Windows – it is a Unix only library.For  
> Windows there is popen4.
> 
> [http://rubyforge.org/projects/popen4/](http://rubyforge.org/projects/popen4/)
> 
> It does the same thing … but for Windows. Be forewarned that the  
> possibility of blocking the program on a full pipe is very possible on  
> the Windows platform. Ara and Tom P. had a good discussion about  
> this last Thanksgiving.
> 
> [http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/9379](http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/9379)

right, and the problem remains. try

gem install systemu

[http://rubyforge.org/projects/codeforpeople/](http://rubyforge.org/projects/codeforpeople/)  
[http://codeforpeople.com/lib/ruby/systemu/](http://codeforpeople.com/lib/ruby/systemu/)

regards.

-a

---

<div class="post-metadata">

**Author:** ![Hanan\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/41988e/32.png) [@Hanan\_M](https://www.ruby-forum.com/u/Hanan_M)\
**Post date:** [March 9, 2007, 10:42pm UTC](https://www.ruby-forum.com/t/open4/88129/4 "2007-03-09T22:42:19Z")

</div>

Hello

Thanks for all who replied
