Index of /~jamie/course/CS/3172/Materials/examples/perl/ipc/pipes/pipe-errors

Icon  Name                                                      Last modified      Size  Description
[PARENTDIR] Parent Directory - [TXT] 01_write_ten.pl 2007-08-29 20:04 702 [TXT] 01_write_ten.pl.source 2007-08-29 20:04 702 [TXT] 02_write_ten_ph.pl 2007-08-29 20:04 719 [TXT] 02_write_ten_ph.pl.source 2007-08-29 20:04 719 [TXT] 03_write_ten_i.pl 2007-08-29 20:04 685 [TXT] 03_write_ten_i.pl.source 2007-08-29 20:04 685 [TXT] 04_write_ten_popi.pl 2007-08-29 20:04 869 [TXT] 04_write_ten_popi.pl.source 2007-08-29 20:04 869 [TXT] Errno.pm 2007-08-29 20:04 6.4K [TXT] read_three.pl 2007-08-29 20:04 370 [TXT] read_three.pl.source 2007-08-29 20:04 370
PIPE Error Examples for Dal CS 3172 : Web-centric Computing

CS3172 > Mats > examples/ > perl/ > ipc/ > pipes/ > pipe-errors/

J. Blustein

Web-centric Computing

[Crs | Ann | Mats | Res]

Some Example Code

pipe-errors/ directory

Directories

pipes/ parent directory
this directory

Files

README
Some notes about the programs. All these programs are from Network Programming With Perl by Lincoln D. Stein
Errno.pm
from CPAN
read_three.pl
reads three lines from standard input
01_write_ten.pl
opens a pipe to read_three.pl and tries to write ten lines, uses very little error checking
02_write_ten_ph.pl
like 01_write_ten.pl but checks for PIPE signals and stops as soon as it is recieved
03_write_ten_i.pl
like 01_write_ten.pl but checks for errors after each print statement and stops as soon as an error is detected
04_write_ten_popi.pl
intercepts the PIPE signal (as 02_write_ten_ph.pl does) and decides what to do depending on what the real error condition was

http://web.cs.dal.ca/~jamie/course/CS/3172/Materials/examples/perl/ipc/pipes/pipe-errors/README.shtml
Version:
Sunday, 29-Nov-2009 14:30:03 AST
CS 3172 Prof:
J. Blustein <jamie@cs.dal.ca>
Shortcuts
Accesskey menu
Sitemap
Site search

Valid XHTML 1.0!