Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8753783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:29:28+00:00 2026-06-13T13:29:28+00:00

In my attempt to learn more about Ruby, I’m looking at this blog post

  • 0

In my attempt to learn more about Ruby, I’m looking at this blog post http://mentalized.net/journal/2010/03/08/5_ways_to_run_commands_from_ruby/ which talks about different commands-executing methods such as Kernel#exec and Kernel#system. His example file has two lines of code

  #!/usr/bin/env ruby
puts "out"
STDERR.puts "error"

and he notes, whenever he runs a command, whether the output is captured or not. For example, here STDOUT is captured, but STDERR is not.

 >> `./err.rb`
err
=> "out\n"

But why is this important? What is the difference in practical terms whether output is “captured” or not. I tried to find the answer to this in my Ruby book, but to no avail.

Thanks for your explanation.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T13:29:29+00:00Added an answer on June 13, 2026 at 1:29 pm

    The author notes the significance of whether output is captured or not at the top of the post you link:

    […] it was triggered by an issue with my Redmine Github Hook plugin where
    STDERR messages were not being logged.

    Sounds like the author found that error messages written to stderr were not being “captured” and put into the program’s log file, which may have made diagnosing those errors more difficult.

    If you haven’t yet, you might want to learn a little bit more about standard streams, which determine where your program’s output is directed. If you’re able to manipulate standard streams effectively you can capture output from your program and redirect it to the appropriate place, e.g. errors go to a log file, generated data outputs to a data file, status updates that a user might want to see go to the screen, etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to learn more about java. This program is an attempt to
I've been doing my annual attempt to learn Haskell this weekend, and as ever
I'm currently trying to learn more about object oriented design in C++ (familiar with
in an attempt to learn something about ARM assembly, i have written a simple
I'm new to Java and as an attempt to learn more I tried making
Continuing my quest to learn more about Backbone.js I have arrived to a situation
I've tried playing around in python to learn more about the smtp protocol. More
I'm trying to learn more about regex today. I'm simply trying to match an
In an attempt to learn JS OOP I am viewing the source code of
in my attempt to learn a bit faster the use of spring and hibernate

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.