import os file = open("cc.txt") for line in file: os.system(line)로그인 후 복사file = File.open("ttt.txt") file.each_line do |line| %x(scp #{line.chomp} #{line.replace("/","")}) end로그인 후 복사