Ruby in windows

i'm trying to script administrative tasks in windows and i'm really
not feeling the ruby love, does anyone have some suggestions on a way
of running commands and catching STDERR in windows?

Try:
1. win32-open3 gem
2. use Kernel#system or `` (backticks) and redirect output to a file
or pipe. Windows from 2000 up supports stderr
redirection ( command 2> err.txt )

···

On Sun, Mar 2, 2008 at 7:24 AM, lance.sanchez@gmail.com <lance.sanchez@gmail.com> wrote:

i'm trying to script administrative tasks in windows and i'm really
not feeling the ruby love, does anyone have some suggestions on a way
of running commands and catching STDERR in windows?

thanks, thats giving me the io objects back.

···

On Mar 2, 1:49 am, "Jano Svitok" <jan.svi...@gmail.com> wrote:

On Sun, Mar 2, 2008 at 7:24 AM, lance.sanc...@gmail.com > > <lance.sanc...@gmail.com> wrote:
> i'm trying to script administrative tasks in windows and i'm really
> not feeling the ruby love, does anyone have some suggestions on a way
> of running commands and catching STDERR in windows?

Try:
1. win32-open3 gem
2. use Kernel#system or `` (backticks) and redirect output to a file
or pipe. Windows from 2000 up supports stderr
redirection ( command 2> err.txt )

when i run this in production it seems to die while trying to read
from the Output IO object, if its

io_in, io_out, io_err = Open3.popen('some command with parameters')

out = io_out.read (hangs here forever if the command should have worked)

···

On Sun, Mar 2, 2008 at 10:11 AM, lance.sanchez@gmail.com <lance.sanchez@gmail.com> wrote:

thanks, thats giving me the io objects back.

On Mar 2, 1:49 am, "Jano Svitok" <jan.svi...@gmail.com> wrote:
> On Sun, Mar 2, 2008 at 7:24 AM, lance.sanc...@gmail.com > > > > > > <lance.sanc...@gmail.com> wrote:
> > i'm trying to script administrative tasks in windows and i'm really
> > not feeling the ruby love, does anyone have some suggestions on a way
> > of running commands and catching STDERR in windows?
>
> Try:
> 1. win32-open3 gem
> 2. use Kernel#system or `` (backticks) and redirect output to a file
> or pipe. Windows from 2000 up supports stderr
> redirection ( command 2> err.txt )