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

  • Home
  • SEARCH
  • 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 7532125
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T05:21:41+00:00 2026-05-30T05:21:41+00:00

I am learning about piping and shell in a Systems class. I’m messing around

  • 0

I am learning about piping and shell in a Systems class. I’m messing around with strace. I am running it on some program called dpipe.

In the strace log, I see the following:

pipe([3, 4])
pipe([5, 6])

What do those integers represent? I under that piping is basically used in shell to route the output of one command, to the input of another using |. So it just makes our lives easier. In this case, what do the array of numbers up there represent? Furthermore, if piping is just used in shell, why is there C syscall for it? Is that made solely for those who want to write their own shell (to make their lives easier)?

  • 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-30T05:21:43+00:00Added an answer on May 30, 2026 at 5:21 am

    Ignacio explained correctly that the numbers in square brackets are the two file descriptors returned by the pipe() system call. The first is the read end of the pipe, and the second is the write of the pipe.

    Pipes are by no means only used by the shell, though that is probably the most common place to use them. However, you have it backwards; the shell can only use the system calls provided by the system, and because the system provides pipe(), the shell is able to provide piping. Without the support from the o/s in the form of the system call, the shell would be unlikely to provide the pipe notation. All the system calls are there to make it possible for programmers to provide services to their customers (the end users of the software they write).

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

Sidebar

Related Questions

I remember first learning about vectors in the STL and after some time, I
Where should I start learning about version control systems? I've used SVN, Team Foundation,
Learning about threading is fascinating no doubt and there are some really good resources
Just learning about Dependency Injection and Prism... It seems just asking around alot of
I've recently began learning about QThreads and I've a program which runs a 4
I'm learning about how to manipulate the Membership class. I have added the Membership
I am learning about pointers and arrays in class. My trouble is in the
In learning about Web Deploy I came across some netsh.exe commands that talk about
I'm learning about generics, so I'm trying to make my own generic array class,
I learning about some basic C functions and have encountered time(NULL) in some manuals.

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.