# Need informations

**URL:** <https://www.ruby-forum.com/t/need-informations/187864>\
**Category:** Ruby\
**Created:** [April 30, 2010, 4:04pm UTC](https://www.ruby-forum.com/t/need-informations/187864 "2010-04-30T16:04:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![doctor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e0b2c6/32.png) [@doctor](https://www.ruby-forum.com/u/doctor)\
**Post date:** [April 30, 2010, 4:04pm UTC](https://www.ruby-forum.com/t/need-informations/187864/1 "2010-04-30T16:04:55Z")

</div>

I need some informations about the scripting with Ruby.

Is it possible to do this feature directly (or indirectly) :  
- manage processus (start, get the status, stop),  
- get the return of a program,  
- get the program output,  
- the exploit of SQL’s request is easy ?  
- access to COM component is possible ?  
- access to the AD (test the presence of an object, find his full  
path, …  
- exchange variables between processus,  
- have a graphic interface to request informations to the user,  
- do libraries (with version, …) ?

A lot of questions who don’t have founded answers…

Thank you in advance for your answers,

Best regards,  
Doc’

---

<div class="post-metadata">

**Author:** ![doctor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e0b2c6/32.png) [@doctor](https://www.ruby-forum.com/u/doctor)\
**Post date:** [April 30, 2010, 5:37pm UTC](https://www.ruby-forum.com/t/need-informations/187864/2 "2010-04-30T17:37:53Z")

</div>

On Fri, Apr 30, 2010 at 10:04 AM, Doc T. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I need some informations about the scripting with Ruby.
> 
> Is it possible to do this feature directly (or indirectly) :
> 
> - manage processus (start, get the status, stop),
> - get the return of a program,
> - get the program output,

Sure there are various ways to interact with processes, this seems to  
be a pretty good overview of the basic Ruby functionality:

[http://whynotwiki.com/Ruby\_/\_Process\_management](http://whynotwiki.com/Ruby_/_Process_management)

You might find it instructive also to look at some process monitoring  
tools written in Ruby like

god: [http://god.rubyforge.org/](http://god.rubyforge.org/)

bluepill: [http://github.com/arya/bluepill](http://github.com/arya/bluepill)

> - the exploit of SQL’s request is easy ?

Quite. there are both low-level bindings to various databases, as well  
as higher level ORM mapping libraries like DataMapper and ActiveRecord  
(the latter part of Ruby on Rails) which provide db independence and  
an object-oriented interface.

> - access to COM component is possible ?

I don’t do much with MS platforms, but googling for “ruby component  
object model” seems to provide some useful info.

> - access to the AD (test the presence of an object, find his full  
> path, …

I assume you mean Active Directory here. Again, not much direct  
knowledge, but there are certainly LDAP bindings for Ruby which I’m  
pretty sure have been successfully used to interact with Active  
Directory.

If you want tight integration with MS frameworks you might look at  
IronRuby.

> - exchange variables between processus,

See above

> - have a graphic interface to request informations to the user,

Yes, there are several Ruby UI libraries, Tk, Qt, FxRuby, … JRuby  
will let you use Java UI frameworks, and again there’s IronRuby for MS  
devotées

> - do libraries (with version, …) ?

I’m not sure what you mean here, I can think of two meanings.

If you are talking about executable code libraries, there is Ruby  
gems which allows multiple versions for ruby libraries to be installed  
and selected. Gems provides for Ruby what packages do for operating  
systems, although most OS packagers only support a single version to  
be installed a time. More recently there has been a trend towards  
better tools for deploying and managing gems, such as bundler.

Or maybe you are talking about source code management and version  
control. Ruby works well with these, I’d say that most Rubyists use  
either Git or Subversion. Git has become quite popular particularly  
since the advent of github [http://github.com/](http://github.com/)

J’espère que je vous ai aidé

> A lot of questions who don’t have founded answers…
> 
> Thank you in advance for your answers,
> 
> ## Best regards, Doc’
> 
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

–  
Rick DeNatale

Blog: [http://talklikeaduck.denhaven2.com/](http://talklikeaduck.denhaven2.com/)  
Github: [rubyredrick (Rick DeNatale) · GitHub](http://github.com/rubyredrick)  
Twitter: @RickDeNatale  
WWR: [http://www.workingwithrails.com/person/9021-rick-denatale](http://www.workingwithrails.com/person/9021-rick-denatale)  
LinkedIn: [http://www.linkedin.com/in/rickdenatale](http://www.linkedin.com/in/rickdenatale)
