Jump to content

File Descriptors and Input output Redirection

- - - - -

  • Please log in to reply
2 replies to this topic

#1
fread

fread

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 787 posts
I would appreciate any good links or e-books that would provide a baseline understanding of input output redirection(not with stdio.h library e.g fopen, fclose etc). Preferably more low level control with read() open() write() etc.
Also any good material pipes, again for a baseline understanding.
I have a fairly good understanding of child processes and the exec family. I want to use this info to write a shell.
Perfection of means and confusion of ends seem to characterize our age. Albert Einstein :confused:

#2
onus

onus

    Programmer

  • Members
  • PipPipPipPip
  • 115 posts
Programming In Linux Environment by Wrox Publications has a chapter on the concepts you are asking with solved examples.

Following should give you what you are asking
http://snap.nlc.dccc...hap3/chap3.html

#3
mnirahd

mnirahd

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 330 posts
Hi,

You can find a very good example how to use read,write for pipe over

pipe(2): create pipe - Linux man page

I hope this helps

Munir




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users