search for: stdin_timeout

Displaying 3 results from an estimated 3 matches for "stdin_timeout".

2006 Aug 07
0
open4-0.5.0
...cmd = ''command_that_should_complete_in_about_one_minute'' open4.spawn cmd, :timeout => 60 or cmd = ''consumes_input_at_one_line_per_second_rate'' input = %w( 42 forty-two 42.0 ) open4.spawn cmd, :stdin=>input, :stdin_timeout=>1 - added ''open4'' alias so one can write open4.spawn vs Open4.spawn or even open4(cmd) do |pid,i,o,e| end - added signal info to SpawnError 0.4.0: - improved error handling contributed by jordan breeding. - introd...
2006 Nov 01
0
fatal flaw in popen4 on windows? [WAS] Re: Nonblocking IO read (fwd)
...] > stdin = getopt[ %w( stdin in i 0 ) << 0 ] > stdout = getopt[ %w( stdout out o 1 ) << 1 ] > stderr = getopt[ %w( stderr err e 2 ) << 2 ] > pid = getopt[ ''pid'' ] > timeout = getopt[ %w( timeout spawn_timeout ) ] > stdin_timeout = getopt[ %w( stdin_timeout ) ] > stdout_timeout = getopt[ %w( stdout_timeout io_timeout ) ] > stderr_timeout = getopt[ %w( stderr_timeout ) ] > status = getopt[ %w( status ) ] > cwd = getopt[ %w( cwd dir ), Dir.pwd ] > > exitstatus = > case exi...
2006 Nov 04
0
open4-0.5.1
...---------------------------------------- the timeout methods can be used to ensure execution is preceding at the desired interval. note also how to setup a ''pipeline'' ---------------------------------------------------------------------------- harp: > cat sample/stdin_timeout.rb require ''open4'' producer = ''ruby -e" STDOUT.sync = true; loop{sleep(rand+rand) and puts 42} "'' consumer = ''ruby -e" STDOUT.sync = true; STDIN.each{|line| puts line} "'' open4(producer) do |pid, i, o,...