# How to call others programs?

**URL:** <https://www.ruby-forum.com/t/how-to-call-others-programs/109189>\
**Category:** Rails\
**Created:** [July 12, 2007, 9:45am UTC](https://www.ruby-forum.com/t/how-to-call-others-programs/109189 "2007-07-12T09:45:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![franz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/c37758/32.png) [@franz](https://www.ruby-forum.com/u/franz)\
**Post date:** [July 12, 2007, 9:45am UTC](https://www.ruby-forum.com/t/how-to-call-others-programs/109189/1 "2007-07-12T09:45:41Z")

</div>

Hello everybody,

I have found a method to call others programs in my controller with a  
pipe, like this :

pipe=IO.popen “my command”,“r”  
result=pipe.read  
pipe.close

But for some obscur reasons, now that I have install the plugin  
backgroundrb to launch tasks in background, this method doesn’t work  
anymore…

Did someone know why ??

Or did someone know an other method that works to call my programs ( in  
C and C++ ) and to get the output of those programs ??

Thank’s in advance !

Franz
