def run(pr : String)
commands = pr.split(" ")
pr = commands[0]
proc = Process.find_executable(pr)
opts = args=commands[1, commands.size]
Process.run("#{proc}", opts, output: :inherit)
end
run("ls -lAF")
just use Process.run(command, shell: true, output: :inherit)
?
1 Like
Thank you!