ICT374 Lab 8.docx - ICT374 Lab 8 Breaking Up Command Line into a Sequence of Commands Unix Signals Handling Learning Objectives To understand the Unix

ICT374 Lab 8.docx - ICT374 Lab 8 Breaking Up Command Line...

This preview shows page 1 - 3 out of 7 pages.

ICT374 Lab 8: Breaking Up Command Line into a Sequence of Commands; Unix Signals Handling. Learning Objectives: To understand the Unix signal model, especially the reliable signal model, and be able to write your own signal handlers and to setup such signal handlers to catch signals. Since the function signal is not portable, you should avoid using it in your assignment, using sigaction function instead. Required Reading: Lecture Notes for Topic 6 Functions in string.h . signal.h and other related header files for signals. The manual pages of the string related functions and signal related related system calls and functions In addition to the lecture notes on Signal Handling, the relevant chapters in Stevens and Rago (chapter 10). C Programming Exercises Note, all exercises must be done via the terminal commands, not GUI tools. Do not use IDE to build your programs. Do not use GUI file managers to manage your directories and files. Also each exercise should be in a separate directory, which itself, is under a directory called lab08 1. Shell command separators A Unix shell can process a command line that consists of more than one command. That is, the commannd line % ls -l /dev | grep tty > ttylist & ps -f > plist ; ls -l *list
Image of page 1
Image of page 2
Image of page 3

You've reached the end of your free preview.

Want to read all 7 pages?

  • One '14

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture