From: Venkat Venkataraju Date: 2005-05-12T10:16:40+09:00 Subject: Re: Infinite loop program w/ IO.popen Logan Capaldo wrote: > Does this version behave better? It should exit immediately but have a > forked process doing its thing in the background with no need for an > at the shell. > It works!!! Thanks for the info. I did find that all the programs that use stdin needs to be connected to a tty. my main goal was to execute ssh command thru pipe, but i chose "top" as an example as it had similar behavior. so for ssh, all i have to pass -f or -n flag and it routes the stdin to /dev/null and that fixed my issue. Thanks Venkat