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 7032827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:59:06+00:00 2026-05-28T00:59:06+00:00

Is is possible (in Ruby or in general) to create some kind of blackhole

  • 0

Is is possible (in Ruby or in general) to create some kind of blackhole file like socket. But to allow write as to regular file echo "newline" >> my-fake-file.

I tried unix socket, but it fails to write into it. I don’t care about reading it, because all would be processed by running daemon. Best would be not to write into it at all.

Why I need it? I need to process logs written to file. And nginx allows only file logs (without patch).

  • 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-05-28T00:59:06+00:00Added an answer on May 28, 2026 at 12:59 am

    To throw the data away completely, write to /dev/null.

    To pass the data to another process you can use a named pipe. A named pipe is a special file that can be used for inter-process communication: data written by one process is read by another. See man mkfifo.

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

Sidebar

Related Questions

It should be possible send and receive ICMP packets using the Ruby socket library
Possible Duplicate: Ruby 1.9 - no such file to load 'win32/open3' I am having
Possible Duplicate: Ruby functions vs methods Im just reading some ruby documentation and t
Is there anything like this possible in Ruby: hash = { :foo => 'bar',
Since Rails is using Ruby (dynamic language), would it be possible to create a
Perhaps this just sounds ridiculous but I'm wondering is this possible with Ruby? Basically
It's not specifically a ruby problem: more of a general question about algorithms. But
Possible Duplicate: Ruby equivalent of PHP's “.=” (dot equals) operator I want to create
Possible Duplicate: Ruby On Rails 3 and Webrick issue $ rails server /Users/Vineeth/.rvm/gems/ruby-1.9.3-p194/gems/ruby-debug-base19-0.11.25/lib/ruby-debug-base.rb:1:in `require':
Possible Duplicate: Ruby syntax question: Rational(a, b) and Rational.new!(a, b) I'm in the process

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.