CS Behind the Curtain (CS195 2003S)
Primary:
[Front Door]
[Current]
[Glance]
-
[Blurb]
[Disabilities]
[Honesty]
[Instructions]
[Links]
[Search]
[Syllabus]
Groupings:
[EBoards]
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Outlines]
[Readings]
[Reference]
ECA:
[About]
[Grades]
[Quizzes]
[Submit Work]
[Change Password]
[Reset Password]
Misc:
[Walker/Fall 2001]
[SamR]
Back to Processes (2). On to Evaluation.
Held: Tuesday, 6 May 2003
Summary: We conclude our investigation of processes in Unix by considering how the new processes might execute other programs.
Related Pages:
Notes:
Overview:
dup2(pipexxx, STDIN_FILENO)
: Output: use dup2(pipexxx, STDOUT_FILENO)
argc
and argv
to main.
execl
.
exec(programs, arg1, ..., argn, NULL);
Create a program that takes two command-line parameters, the name of a file and a string. It should then open four processes and three pipes.
grep
to extract the
lines with the given string.
sort
to put the lines
in order.
Back to Processes (2). On to Evaluation.
Primary:
[Front Door]
[Current]
[Glance]
-
[Blurb]
[Disabilities]
[Honesty]
[Instructions]
[Links]
[Search]
[Syllabus]
Groupings:
[EBoards]
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Outlines]
[Readings]
[Reference]
ECA:
[About]
[Grades]
[Quizzes]
[Submit Work]
[Change Password]
[Reset Password]
Misc:
[Walker/Fall 2001]
[SamR]
Disclaimer:
I usually create these pages on the fly
, which means that I rarely
proofread them and they may contain bad grammar and incorrect details.
It also means that I tend to update them regularly (see the history for
more details). Feel free to contact me with any suggestions for changes.
This document was generated by
Siteweaver on Tue May 6 16:09:00 2003.
The source to the document was last modified on Mon Jan 20 12:41:07 2003.
This document may be found at http://www.cs.grinnell.edu/~rebelsky/Courses/CS195/2003S/Outlines/outline.54.html
.
You may wish to
validate this document's HTML
;
;
Check with Bobby