Skip to content

Instantly share code, notes, and snippets.

@svladcjelli
Created May 22, 2009 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save svladcjelli/116204 to your computer and use it in GitHub Desktop.
Save svladcjelli/116204 to your computer and use it in GitHub Desktop.
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