From: matz@... (Yukihiro Matsumoto) Date: 2003-10-18T00:24:56+09:00 Subject: Re: Thread + fork warning Hi, In message "Re: Thread + fork warning" on 03/10/17, Bedo Sandor writes: |- I can't log the termination of the spawned | process. How do you want to watch process? If you want to store logs into a file, you can use shell redirect such as ">" etc. If you want to get logs as stream output, you can use popen3 library. |- Don't know if this is a correct way to start | background processes: (I need background processes, | so I have to continue the main Ruby program!) | | def startInBg(unixCommand) | system(unixCommand.to_s + "&") | end | ... | startInBg 'zcat /var/log/messages*.gz | logClassifier' | | It works, and there's no warnin, but what | do You think about +"&" ? +"&" should work OK; you are working on Unix. matz.