Created
May 22, 2009 15:45
-
-
Save svladcjelli/116204 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
locations = [ | |
"\\\\192.168.2.101\\e$\\gw.log", | |
"\\\\192.168.2.101\\e$\\cima.log", | |
"\\\\is-util02\\c$\\eba.log", | |
"\\\\192.168.2.30\\c$\\DATA\\USERCOPYLOG.LOG", | |
"\\\\192.168.2.30\\c$\\DATA\\PSTS.LOG", | |
"\\\\192.168.2.105\\c$\\Program Files\\Windows Resource Kits\\Tools\\RC.log", | |
"\\\\192.168.2.105\\c$\\Program Files\\Windows Resource Kits\\Tools\\RC2.log", | |
"\\\\192.168.100.96\\f$\\QBROBOCOPY.LOG", | |
"\\\\192.168.2.114\\c$\\RC2.LOG", | |
"\\\\192.168.2.114\\c$\\RC.LOG"] | |
command = %Q[tail "#{locations.join('" "')}"] | |
IO.popen(command) do |io| | |
io.each_line { |line| puts line } | |
end | |
%x[pause] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment