Pipes and STDERR

J

James Smith

Hello everyone,

I would like to be able to assign my pipe to a variable, whilst still
being able to capture STDERR; i'm sure this is possible but can't think
how to do it..

This is the code for the pipe:

@pipe = IO.popen("ruby userFile/file.rb", "r+")

I am on windows and have tried to use the systemu library to no avail..

any ideas?
 
R

Robert Klemme

I would like to be able to assign my pipe to a variable, whilst still
being able to capture STDERR; i'm sure this is possible but can't think
how to do it..

What exactly do you mean? Why is the pipe and stderr related? Are you
talking about stderr of the Ruby process or of some child process?

Regards

robert
 
J

James Smith

What exactly do you mean? Why is the pipe and stderr related? Are you
talking about stderr of the Ruby process or of some child process?

Sorry, not very well explained.. i need to capture stderr of the ruby
process and write it into the pipe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top