Displaying 1 result from an estimated 1 matches for "my_err".
Did you mean:
mp_err
2006 Nov 21
3
Fw: re. win32-process
...up_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 ''win32/process''
app_name = ''c:\ruby\bin\ruby "'' + Dir.pwd + ''/test.rb"''
my_out = $stdout.clone
my_err = $stderr.clone
my_out.reopen(''NUL'')
my_err.reopen(''NUL'')
Process.create(
:app_name => app_name,
:inherit => true,
:creation_flags => Process::DETACHED_PROCESS,
:startup_info => {
:startf_flags => Process::STARTF_USESTDHANDLES,...