# Re: Process management and control

**URL:** <https://www.ruby-forum.com/t/re-process-management-and-control/75858>\
**Category:** Ruby\
**Created:** [March 2, 2006, 8:33pm UTC](https://www.ruby-forum.com/t/re-process-management-and-control/75858 "2006-03-02T20:33:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BergerS\_Daniel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc8723/32.png) [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Post date:** [March 2, 2006, 8:33pm UTC](https://www.ruby-forum.com/t/re-process-management-and-control/75858/1 "2006-03-02T20:33:34Z")

</div>

> 1. Stop a process/script
> 2. 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?

Unfortunately, no. Process is a module, not a class. I think the  
closest you can get is to use open3 and/or watch the process table using  
something like sys-proctable (on the RAA).

I think it’s an idea worth considering, though.

Regards,

Dan
