forking processes and writing to log file

J

Joe Van Dyk

Hello,

So, on linux, I'm forking a new Ruby process. I redirect stdout and
stderr into a file and then I execute another program via 'system'.

If I background the main Ruby process, the writing to the log file
seems to get halted as (I think) it's waiting for terminal input
(which it's not):

$ ./the_ruby_program.rb &
[1] + Suspended (tty input) ./the_ruby_program.rb

Any ideas?

Thanks,
Joe
 
J

Joe Van Dyk

Hello,

So, on linux, I'm forking a new Ruby process. I redirect stdout and
stderr into a file and then I execute another program via 'system'.

I should probably mention that the other program that's being executed
is rsh, which executes a command on a different machine.
 

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

Forum statistics

Threads
474,214
Messages
2,571,110
Members
47,702
Latest member
gancflex

Latest Threads

Top