J
Jun Young Kim
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)
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)