ch04 - Project1: Unix Shell with History Feature s Goals s...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
4.1 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Project1: Unix Shell with History Feature Project1: Unix Shell with History Feature Goals Descriptions Methodology Submission
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
4.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Goals Goals Understand how a simple shell works. Understand systems calls, such as fork, read, wait, execvp, and etc. Understand signal handling mechanisms
Background image of page 2
4.3 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Descriptions Descriptions Demo command> ls commnad> cat proj1.c command> ctr-c command> ctr-d Input: commands from keyboard Fork a child process to perform the command Store the past commands in a buffer Given a signal, display the most recent commands in the buffer Ctrl-C terminates the shell
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
4.4 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Methodology Methodology How to get the command from the keyboard? Use system call read() with STDIN_FILENO
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 10

ch04 - Project1: Unix Shell with History Feature s Goals s...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online