similar to: Making redirecting output with win32-process a bit easier

Displaying 20 results from an estimated 400 matches similar to: "Making redirecting output with win32-process a bit easier"

2006 Nov 21
3
Fw: re. win32-process
Hi all, Any ideas for the question below? I know how to do this in theory - make the ''inherit'' flag true, and set the ''stdout'' and ''stderr'' startf_flags hash options to something in the startup_info hash, but I wasn''t sure how to do this in practice. It would be nice if the answer could be something like this: require
2009 Aug 02
2
win32-security, 1.9.x, encoding issue?
Hi, Windows Vista Home Premium ruby 1.9.2dev (2009-07-18 trunk 24186) [i386-mswin32_90] I noticed there was an ordinal bug in win32-security and Ruby 1.9.x. I fixed those easily enough, but now we''re left with this: 1) Error: test_string_to_sid(TC_Win32_Security_Sid): ArgumentError: invalid byte sequence in US-ASCII
2012 Nov 01
1
build error on CentOS 5
I'm getting the following error when building libvirt 10.2 from source in CentOS 5: CC libvirt_util_la-processinfo.lo util/processinfo.c: In function 'virProcessInfoGetAffinity': util/processinfo.c:164: error: invalid operands to binary | The line in question is: 162 for (i = 0 ; i < maxcpu ; i++) 163 if (CPU_ISSET(i, &mask)) 164
2006 Oct 23
0
Need some help with MMap# and MMap#=
Hi all, At RubyConf this year I talked about win32-mmap with Patrick Hurley and Ara Howard. Ara mentioned that Guy''s version of mmap (for Unix) contains some string-like methods that let you access pieces of the view like a string. Patrick and I came up with this (which requires the latest windows-pr in cvs so that we can use a more flexible version of memcpy, as well as some
2004 Mar 01
0
RE: win32etc test failure
Excellent! Like I said, I really need to do some code cleanup. I''ll also be adding the config_group and config_user methods :) Dan -----Original Message----- From: Date, Shashank [Non-Employee] [mailto:Shashank.Date@mail.sprint.com] Sent: Monday, March 01, 2004 10:19 AM To: Berger, Daniel Subject: RE: [Win32utils-devel] RE: win32etc test failure That worked ! Now everything is
2007 May 04
1
Trying to get a good example for win32-mutex
Hi all, I''ve been going through the various IPC modules for Win32Utils and converting them to pure Ruby. I''m almost done with win32-mutex, but I can''t get the example to work. I keep getting this error: C:/Documents and Settings/djberge/workspace/win32-mutex/examples/mutex_test.rb:41: undefined method `+'' for nil:NilClass (NoMethodError) from
2004 Mar 01
0
RE: win32etc test failure
Ok - time for me to patch and update the docs! Thanks for the testing! Dan -----Original Message----- From: Date, Shashank [Non-Employee] [mailto:Shashank.Date@mail.sprint.com] Sent: Monday, March 01, 2004 10:02 AM To: Berger, Daniel Subject: RE: win32etc test failure I like your approach better: allow me to be lazy (so I am not _forced_ to give it) but forgive me if I do ;-) It worked
2004 Mar 01
0
RE: win32etc test failure
For delete_user, try this patch: etc.c, line 639: - lpHost = (LPCWSTR)STR2CSTR(rbHost); +lpHost = AllocWideLString(rbHost); Lemme know how it goes. Dan -----Original Message----- From: win32utils-devel-bounces@rubyforge.org [mailto:win32utils-devel-bounces@rubyforge.org] On Behalf Of win32utils-devel@rubyforge.org Sent: Monday, March 01, 2004 10:02 AM To: Date, Shashank [Non-Employee] Cc:
2007 Nov 06
5
textarea fails on rows attribute
Hi, Camping 1.5.180 Ruby 1.8.6 It looks like Camping is choking on the ''rows'' attribute for input tags: input(:name => ''cuid'', :type => ''text'', :size => 10, :rows => 3) That will fail with: Markaby::InvalidXhtmlError no attribute `rows'' on input elements:
2006 Apr 14
3
[ win32utils-Bugs-4101 ] create hash param
Bugs item #4101, was opened at 2006-04-14 11:27 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=4101&group_id=85 Category: win32-process Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: create hash param Initial Comment: hi, problem with process, when I do pid = Process.create(
2004 Mar 01
0
RE: win32etc test failure
Yep, I agree. Well, what would you prefer? I handle it for you or you handle it yourself? I''m tempted to go with the former because, well, it''s been there for a while now. I can even use strtok to detect if ''\\\\'' is at the beginning of the string and add them only if not found. I''ll have to take a look at delete user - it worked for add_user,
2008 May 11
4
Latest rb_win32_select patch
Hi Park, I tried your latest patch and ran the sample code: readPipe, writePipe = IO.pipe t = Thread.new{ sleep 5 while true sleep 0.1 puts "got #{readPipe.readline.length} bytes" end } i = 1 while true i += 1 sleep 1 puts "hello from main" if i > 3 writePipe.puts "a"*2048 end end t.join At the console I typed the
2007 Sep 28
1
Help with win32/api, windows-api
Hi all, I must have been testing windows-pr with an old version of windows-api, because now when I run ''rake test'' for windows-pr I get this: C:\Documents and Settings\djberge\workspace\windows-pr>rake test C:0:Warning: require_gem is obsolete. Use gem instead. (in C:/Documents and Settings/djberge/workspace/windows-pr) C:/ruby/lib/ruby/site_ruby/1.8/windows/api.rb:288:
2006 Aug 24
1
[ win32utils-Bugs-5503 ] Process::create() checks return value of CreateProcess against 0, should be false
Bugs item #5503, was opened at 2006-08-23 21:27 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=5503&group_id=85 Category: win32-process Group: Code Status: Open Resolution: None Priority: 3 Submitted By: David Haney (darius42) Assigned to: Nobody (None) Summary: Process::create() checks return value of CreateProcess against 0, should be false
2010 Jan 23
10
Trouble creating mingw binary
Hi, I''m trying to build a binary for win32-open with a mingw install but I''m having trouble. I''ve installed MinGW 5.1.6 and I''ve got gcc, etc. But, when I run "ruby extconf.rb; make" I get the following error: C:\Documents and Settings\djberge\Repositories\win32-open3\ext>ruby extconf.rb checking for ruby/io.h... no checking for rb_pid_t in
2009 Aug 21
0
[ win32utils-Bugs-26975 ] Two test failures on XP virtual machine
Bugs item #26975, was opened at 2009-08-21 10:52 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=26975&group_id=85 Category: win32-sapi Group: Code Status: Open Resolution: None Priority: 3 Submitted By: Daniel Berger (djberg96) Assigned to: Nobody (None) Summary: Two test failures on XP virtual machine Initial Comment: Ruby 1.8.6-p383 VC++ 9
2009 Apr 07
2
Running an R script from Delphi 7
Gentlepersons: A long time ago I used to be able to start R (version 2.6.1) from a Delphi 7 program and run a script by using a procedure like the following: function StartRAndWait (CommandLine : string) : Boolean; var Proc_info: TProcessInformation; Startinfo: TStartupInfo; ExitCode: longword; CreateOK : Boolean; begin Result := False; { Initialize the structures }
2006 Oct 13
2
win32-mmap - trying to marshal self
Hi all, I realized the current implmentation has a problem - you can only get the last value set? I realized, after looking at the old C code, that it actually stores values in a hash and marshals the hash, not the values themselves. That seemed clunky to me, though. I thought it would be more interesting if we just marshalled the entire mmap object and passed that back and forth.
2011 Aug 22
2
Pure Ruby TCP Daemon
Hi all, I created a "pure" branch on github that uses the code Heesob posted a while back: http://rubyforge.org/pipermail/win32utils-devel/2008-November/001274.html However, I couldn''t make it work on my Vista laptop. c:\Users\djberge\Repositories\win32-service\examples>ruby demo_daemon_ctl.rb start VERSION: 0.8.0
2008 Apr 25
4
win32-mmap test failures
Hi all, This is odd. It looks to me like we have all 4 variations of memcpy set in Windows::MSVCRT::Buffer but somehow this one creeps up. I actually noticed it in a few cases with that earlier mmap sub/replace example, but I wasn''t sure what was happening. Note that windows-api 0.2.3 and windows-pr-0.8.3 are the latest versions in CVS, but this happens with windows-api-0.2.2 and