lib/wmap/network_profiler.rb
# Search for local ping executable program. This is helpful for the normal users who has no direct access to generate socket ICMP packets.
Search for local ping executable program. This is helpful for the normal users who has no direct access to generate socket ICMP packets.
Search for local ping executable program . This is helpful for the normal users who has no direct access to generate socket ICMP packets .
def shell_ping_exist? 
		begin
			puts "Search local shell environment for the ping program ..." if @verbose
			@search_path.map do |path|
				ping_exe=path+"ping"
				if File.exist?(ping_exe) && File.executable?(ping_exe)
					@which_ping=ping_exe
					puts "Local ping program found: #{ping_exe}" if @verbose
					return true
				end
			end
			return false
		rescue Exception => ee
			puts "Exception on method #{__method__}: #{ee}" if @verbose
			return false
		end
	end
def shell_ping_exist? begin puts "Search local shell environment for the ping program ..." if @verbose @search_path . map do | path | ping_exe = path + "ping" if File . exist? ( ping_exe ) && File . executable? ( ping_exe ) @which_ping = ping_exe puts "Local ping program found: #{ping_exe}" if @verbose return true end end return false rescue Exception => ee puts "Exception on method #{__method__}: #{ee}" if @verbose return false end end
Search for local ping executable program.
Search for local ping executable program .