Check for a Running Process on a Windows Machine

This is a quick and dirty method to check for a running process on a windows machine using Ruby. require 'win32ole' require 'net/smtp' require 'yaml' def send_email(message) begin msg = <<END_OF_MESSAGE From: #{$from_alias} <#{$from}> To: #{$to_alias} <#{$to}> Subject: #{$subject} #{message} END_OF_MESSAGE Net::SMTP.start('') do |smtp| smtp.send_message msg, $from, $to end rescue => error puts "Exception: #{error}" end end $from_alias = "Email Alias" $from = "" $subject = "Process Error" $to_alias = "Email Alias" $to = "alerts@company. [Read More]