Displaying 2 results from an estimated 2 matches for "si_hash".
Did you mean:
i_hash
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
2008 Feb 27
0
Making redirecting output with win32-process a bit easier
...TDHANDLES flag is
+ # automatically OR''d to the +startf_flags+ value.
#
# The ProcessInfo struct contains the following members:
#
@@ -381,8 +385,10 @@
if handle == INVALID_HANDLE_VALUE
raise Error, get_last_error
end
-
+
si_hash[io] = handle
+ si_hash[''startf_flags''] |= STARTF_USESTDHANDLES
+ hash[''inherit''] = true
end
}
This would eliminate the need to remember that the startf_flags and
inherit value must be set properly in order for redirection t...