module CommandRunner def self.run_ltnp : LtnpOperator io = IO::Memory.new Process.run("netstat -ltnp", shell: true, output: io) LtnpOperator.new io.to_s end def self.run_kill(pid : String) : String io = IO::Memory.new Process.run("kill #{pid}", shell: true, output: io) io.to_s end end