URI: 
       analyze_result.rb - warvox - VoIP based wardialing tool, forked from rapid7/warvox.
  HTML git clone git://jay.scot/warvox
   DIR Log
   DIR Files
   DIR Refs
   DIR README
       ---
       analyze_result.rb (582B)
       ---
            1 #!/usr/bin/env ruby
            2 ###################
            3 
            4 #
            5 # Load the library path
            6 #
            7 base = __FILE__
            8 while File.symlink?(base)
            9   base = File.expand_path(File.readlink(base), File.dirname(base))
           10 end
           11 $:.unshift(File.join(File.expand_path(File.dirname(base)), '..', 'lib'))
           12 require 'warvox'
           13 
           14 #
           15 # Script
           16 #
           17 
           18 inp = ARGV.shift || exit(0)
           19 num = ARGV.shift || exit(0)
           20 
           21 $0  = "warvox(analyzer): #{inp} #{num}"
           22 
           23 begin
           24 
           25 $stdout.write(
           26   Marshal.dump(
           27     WarVOX::Jobs::Analysis.analyze_call(
           28       inp, num
           29     )
           30   )
           31 )
           32 
           33 rescue ::Errno::EPIPE
           34   # Hide pipe errors (parent is killed when task was cancelled)
           35 end