I’d like, from within Ruby, to be able to:
- Start a process/script
- Stop a process/script
- Monitor a process/script to see if it dies or is abnormally
terminated
I was expecting something like:
my_script = Process.new("/tmp/script.sh")
my_script.start
Essentially is there a way to create an object which is a system
process as you might with Java?