# Running system() without output

**URL:** <https://www.ruby-forum.com/t/running-system-without-output/141258>\
**Category:** Ruby\
**Created:** [June 24, 2008, 3:23am UTC](https://www.ruby-forum.com/t/running-system-without-output/141258 "2008-06-24T03:23:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yanik\_Magnan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/4bbf92/32.png) [@Yanik\_Magnan](https://www.ruby-forum.com/u/Yanik_Magnan)\
**Post date:** [June 24, 2008, 3:23am UTC](https://www.ruby-forum.com/t/running-system-without-output/141258/1 "2008-06-24T03:23:31Z")

</div>

Heya,

I’m relatively new to Ruby, but I haven’t found any way of doing this  
by looking through the documentation. I want to call  
system("/usr/bin/sometask #{somefile}"), except the task in question  
doesn’t have a --quiet modifier. Is there anyway to keep the output  
from showing up whenever I run my ruby script?

---

<div class="post-metadata">

**Author:** ![Yanik\_Magnan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/4bbf92/32.png) [@Yanik\_Magnan](https://www.ruby-forum.com/u/Yanik_Magnan)\
**Post date:** [June 24, 2008, 3:44am UTC](https://www.ruby-forum.com/t/running-system-without-output/141258/2 "2008-06-24T03:44:42Z")

</div>

On Jun 23, 2008, at 7:21 PM, Yanik Magnan wrote:

> Heya,
> 
> I’m relatively new to Ruby, but I haven’t found any way of doing this  
> by looking through the documentation. I want to call  
> system(“/usr/bin/sometask #{somefile}”), except the task in question  
> doesn’t have a --quiet modifier. Is there anyway to keep the output  
> from showing up whenever I run my ruby script?

`#{ command }`

a @ [http://codeforpeople.com/](http://codeforpeople.com/)

---

<div class="post-metadata">

**Author:** ![Yanik\_Magnan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/4bbf92/32.png) [@Yanik\_Magnan](https://www.ruby-forum.com/u/Yanik_Magnan)\
**Post date:** [June 24, 2008, 3:54am UTC](https://www.ruby-forum.com/t/running-system-without-output/141258/3 "2008-06-24T03:54:04Z")

</div>

That works! Thanks.
