[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

forking processes and writing to log file

Joe Van Dyk

9/26/2006 9:02:00 PM

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

1 Answer

Joe Van Dyk

9/26/2006 9:08:00 PM

0

On 9/26/06, Joe Van Dyk <joevandyk@gmail.com> wrote:
> 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.