Sha256: 929d802d05f74c1feef32b9d4906d5ffc93eba49c436a7ebfcd0d5255f16d502
Contents?: true
Size: 372 Bytes
Versions: 10
Compression:
Stored size: 372 Bytes
Contents
#!/usr/bin/env ruby require 'yaml' require 'fileutils' path = ARGV[0] puts "kill processes: #{path}" full_path = File.expand_path(path) if File.exist?(full_path) && YAML.load(File.open(full_path)) pids = YAML.load(File.open(full_path)) puts "found pids: #{pids}" pids.each{ |pid| `kill -9 #{pid}` } FileUtils.rm full_path else puts "couldn't find path" end
Version data entries
10 entries across 10 versions & 1 rubygems