#!/usr/bin/env ruby                                                                                

ftp = `wget -m ftp://username:password@1.2.3.4 -O -`

case ftp
when /1008/
  puts "1008 found in this file!"
end