2011-01-16から1日間の記事一覧
某用途で使用したスクリプトです。 require "fileutils" include FileUtils COPY_FROM = 'C:\user\data' COPY_TO = File.expand_path(".") TARGET_SIZE = 1e6 SLEEP_SECOND = 10 def putlog(msg) puts "#{Time.now}: #{msg}" end cd COPY_FROM before_time =…
某用途で使用したスクリプトです。 require "fileutils" include FileUtils COPY_FROM = 'C:\user\data' COPY_TO = File.expand_path(".") TARGET_SIZE = 1e6 SLEEP_SECOND = 10 def putlog(msg) puts "#{Time.now}: #{msg}" end cd COPY_FROM before_time =…