Displaying 19 results from an estimated 19 matches for "open4".
Did you mean:
open
2006 Aug 07
0
open4-0.5.0
...odeforpeople/
http://www.codeforpeople.com/lib/ruby/
SYNOPSIS
open child process with handles on pid, stdin, stdout, and stderr: manage
child processes and their io handles easily.
HISTORY
0.5.0:
- on the suggestion of tim pease (thanks tim!), i added timeout features
to open4. the command run may have an overall timeout and individual
timeouts set for each of the io handles. for example
cmd = ''command_that_produce_out_at_one_second_intervals''
open4.spawn cmd, :stdout_timeout => 2
or
cmd = ''comm...
2006 Nov 04
0
open4-0.5.1
...ith handles on pid, stdin, stdout, and stderr: manage
child processes and their io handles easily.
HISTORY
0.5.1:
- fixes a __critical__ but in ThreadEnsemble class that had a race
condition that could cause thread deadlock. sorry bout that folks.
INSTALL
~> gem install open4
SAMPLES
----------------------------------------------------------------------------
simple usage
----------------------------------------------------------------------------
harp: > cat sample/simple.rb
require "open4"
pid, stdin, stdout, stderr = Open4::po...
2006 Apr 19
0
open4-0.3.0
.... general clean up. added spawn method.
0.2.0 :
- added exception marshaled from child -> parent when exec fails. thanks
to jordan breeding for a patch (yay!) and paul brannan for this most
excellent idea.
0.1.0 :
- fixed docs to correctly show return value of popen4 (pid first not last).
thanks Stefanie Tellex <stefie10@alum.mit.edu> for catching this.
0.0.0 :
- initial version
INSTALL
~> gem install open4
SAMPLES
----------------------------------------------------------------------------
simple usage
------------------...
2006 Jul 05
0
using show argument of Open4.popen4 win32:open3 module
...I am trying to start a rails webrick server programmatically. I want the
console for that server to be shown.
I earlier decided on using win32-open3 module as it provides me with
flexibility to keep track of running of processes.
I use following call to start webrick server,
input, out, err, pid = Open4.popen4("ruby homedir/script/server -p 3001",
mode=''t'',show=true)
webrick server does get started but with no console; how do make the console
visible.
The reason I want the console to be up is because I have observed that rails
applications run using console are faster...
2005 Mar 01
2
Open3.popen3 oddity
Open3.popen3 returns the pid as well as the in, out, and err streams.
I thought only the streams were supposed to be returned.
Thanks
--
Nathaniel
<:((><
2004 Oct 04
2
open3 for windows
...i all,
The topic of creating a unified API for open3 for Windows came up at
RubyConf 2004 this year.
Park, I was wondering if you would mind if we modified win32_popen so that
the API matches the open3 library that ships with Ruby.
This also means deciding whether or not to leave in the open2, open4, and
posix stuff. I guess it doesn''t hurt to leave this in, although Open3.open4
seems a bit off ;) I suppose we could argue that "Open3" was a poorly
chosen module name, but it''s too late now I think.
Also, I had some trouble with win32_popen on XP Home although i...
2004 Dec 10
5
win32-process 0.3.1 is out
Hi all,
Just wanted to let you know that I released 0.3.1 last night. This
addresses Bug #712 and incorporates Patches #1087 and #1137 (thanks
Aslak).
I''ll try to get an open4 implementation out this weekend, though I
noticed that Aslak''s patch is different than what Park originally had,
so I''ll have to decide which I prefer, or if they can be blended
somehow.
Regards,
Dan
2006 Nov 01
0
fatal flaw in popen4 on windows? [WAS] Re: Nonblocking IO read (fwd)
...the win32utils-devel
mailing list to see if anyone has any ideas/suggestions.
Regards,
Dan
> -----Original Message-----
> From: ara.t.howard at noaa.gov [mailto:ara.t.howard at noaa.gov]
> Sent: Wednesday, November 01, 2006 12:36 PM
> To: Berger, Daniel
> Subject: fatal flaw in popen4 on windows? [WAS] Re:
> Nonblocking IO read (fwd)
>
>
>
> hi dan-
>
> forgot to cc you on this... hopefully you''ll have some suggestions?
>
> regards.
>
> -a
> --
> my religion is very simple. my religion is kindness. -- the
> dalai lama...
2006 Apr 16
3
[ win32utils-Patches-4121 ] Make it possible to read process exit status
...it status
Initial Comment:
The UNIX Open3 sets the global $? to a Process::Status object so that one can read the exit status of the sub process.
It seems that one is not supposed to fiddle with /that/ variable, but we can make our own. This patch adds a #last_status method to both the Open3 and Open4 modules that returns a Process::Status object that is set when the pipes are closed (similarly to how Ruby does it in io.c).
I also made popen3 and popen4 return the object when they''re called with a block. I figured it was as neat idea.
-------------------------------------------------...
2004 Dec 01
1
typo
In my previous mail the last line was supposed to be:
"It turns out I probably won''t use fork unless support FOR STREAMS is
added to it."
aslak
2011 May 10
7
Webrick script/server file does not exist
...C:\Sites>gem list --local
*** LOCAL GEMS ***
abstract (1.0.0)
actionmailer (3.0.6)
actionpack (3.0.6)
activemodel (3.0.6)
activerecord (3.0.6)
activeresource (3.0.6)
activesupport (3.0.6)
arel (2.0.9)
builder (2.1.2)
bundler (1.0.12)
erubis (2.6.6)
i18n (0.5.0)
mail (2.2.15)
mime-types (1.16)
open4 (1.0.1)
pg (0.10.1)
Platform (0.4.0)
polyglot (0.3.1)
POpen4 (0.1.4)
rack (1.2.2)
rack-mount (0.6.14)
rack-test (0.5.7)
rails (3.0.6)
railties (3.0.6)
rake (0.8.7)
rb-readline (0.4.0)
rubyzip2 (2.0.1)
sqlite3 (1.3.3 x86-mingw32)
sqlite3-ruby (1.3.3)
thor (0.14.6)
treetop (1.4.9)
tzinfo (0.3.26)
win...
2011 Feb 21
1
authlogic problem
...ack (3.0.3, 2.0.2)
activemodel (3.0.3)
activerecord (3.0.3, 2.0.2)
activeresource (3.0.3, 2.0.2)
activesupport (3.0.3, 2.0.2)
arel (2.0.7)
authlogic (2.1.6)
builder (2.1.2)
bundler (1.0.10)
erubis (2.6.6)
i18n (0.5.0)
json (1.5.1 x86-mingw32)
mail (2.2.15)
mime-types (1.16)
nifty-generators (0.4.5)
open4 (1.0.1)
pg (0.10.1)
Platform (0.4.0)
polyglot (0.3.1)
POpen4 (0.1.4)
rack (1.2.1)
rack-mount (0.6.13)
rack-test (0.5.7)
rails (3.0.3, 2.0.2)
railties (3.0.3)
rake (0.8.7)
rb-readline (0.4.0)
rubyzip2 (2.0.1)
sqlite3 (1.3.3 x86-mingw32)
sqlite3-ruby (1.3.3)
thor (0.14.6)
treetop (1.4.9)
tzinfo (0.3....
2006 Jun 29
0
Ajax Scaffold for a application started using win32-process module.
Hi,
I have an RoR application(parent) which is use to kick off other RoR
applications(ajax scaffold based).
I use win32-process Open4.popen4() to start the RoR applications.
Untill recently I was using normal scaffold feature of Rails, and recently I
migrated to Ajax Scaffold; After moving on to Ajax scaffold, when I try to
start a RoR from my parent RoR, the application do get started, when I fire
a request to get me the list pa...
2006 Jul 03
0
[ win32utils-Patches-4121 ] Make it possible to read process exit status
...it status
Initial Comment:
The UNIX Open3 sets the global $? to a Process::Status object so that one can read the exit status of the sub process.
It seems that one is not supposed to fiddle with /that/ variable, but we can make our own. This patch adds a #last_status method to both the Open3 and Open4 modules that returns a Process::Status object that is set when the pipes are closed (similarly to how Ruby does it in io.c).
I also made popen3 and popen4 return the object when they''re called with a block. I figured it was as neat idea.
-------------------------------------------------...
2006 May 29
0
[open3] Exit Status Patch
I''ve added another patch for the popen3 library which sets $? and adds
Process::Status a return when popen3/4 is called with a block thus
making it closer to the Open4. This is a merge of a couple of patches
previously submitted by Samuel Tesla.
http://rubyforge.org/tracker/index.php?func=detail&aid=4603&group_id=85&atid=413
Note that this implementation is not thread-safe (as is demonstrated
by sample code I''ve provided.) I''d be v...
2011 May 10
1
popen4 gem for windows
hi, i want to make application that run a process automatically after server
starts completely.
I have explore and find popen4 gem which provides this facility.
I have installed a gem but there is some problem while executing the ruby
program.
The error is like
* <internal:lib/rubygems/custom_require>:29:in `require'': no such file to
load --
win32/open3 (LoadError)*
* from <internal:lib/rubygems/c...
2004 Nov 23
2
streams in fork
hi all,
is there a way to use fork with redirected streams? i mean in a
similar way that ruby''s standard open3 does it.
i''d like to be able to read the stdout/stdin/stderr streams from the
forked ruby process in the parent process.
cheers,
aslak
2008 Jan 18
5
How do I pass form values from POST controller specs?
...(0.5.2.0)
liquid (1.7.0)
logging (0.5.3)
markaby (0.5)
memcache-client (1.5.0)
merb (0.5.2)
merb_activerecord (0.5)
meta_project (0.4.15)
mime-types (1.15)
mocha (0.5.5)
mongrel (1.1.3, 1.1.1)
mongrel_cluster (1.0.5)
needle (1.3.0)
net-sftp (1.1.0)
net-ssh (1.1.2)
newgem (0.16.1)
oniguruma (1.1.0)
open4 (0.9.6)
ParseTree (2.1.1, 2.0.2)
pdf-storycards (0.0.1)
pdf-writer (1.1.7, 1.1.4)
piston (1.3.3)
Platform (0.4.0)
plist (3.0.0)
rack (0.2.0)
rails (2.0.2)
rake (0.8.1)
rb-appscript (0.4.0)
rcov (0.8.1.2.0)
RedCloth (3.0.4)
rspec (1.1.1)
rubigen (1.1.1)
ruby-growl (1.0.1)
ruby2ruby (1.1.8, 1.1.7)
ru...
2011 May 09
17
requests hanging
If my Rails server has been sitting idle for a while, it does not respond to
new requests.
What is the best way to troubleshoot something like that.
I am using Rails 3.0.7 in development.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to