Hi, all.

look this code.

----------------------------------------------------------
require 'open3'
include Open3

stdin, stdout, stderr = popen3("ls")

puts stdout.sysread(1024)
----------------------------------------------------------

this code shows up a file list normally.

but, THIS CODE

----------------------------------------------------------
require 'open3'
include Open3

stdin, stdout, stderr = popen3("ftp ftp.gnu.org")

puts stdout.sysread(1024)
----------------------------------------------------------

looks like a hang.

Could you tell me why this thing is happened?