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

Icon  Name                    Last modified      Size  Description
[PARENTDIR] Parent Directory - [TXT] read_three.pl 2005-01-05 17:56 370 [TXT] read_three.pl.source 2005-01-05 17:56 370 [TXT] 03_write_ten_i.pl 2005-01-05 17:56 685 [TXT] 03_write_ten_i.pl.so..> 2005-01-05 17:56 685 [TXT] 01_write_ten.pl 2005-01-05 17:56 702 [TXT] 01_write_ten.pl.source 2005-01-05 17:56 702 [TXT] 02_write_ten_ph.pl 2005-01-05 17:56 719 [TXT] 02_write_ten_ph.pl.s..> 2005-01-05 17:56 719 [TXT] 04_write_ten_popi.pl 2005-01-05 17:56 869 [TXT] 04_write_ten_popi.pl..> 2005-01-05 17:56 869 [TXT] Errno.pm 2005-01-05 17:56 6.4K
PIPE Error Examples for Dal CS 4173 : Web-centric Computing

CS4173 > 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/4173/examples/perl/ipc/pipes/pipe-errors/README.shtml
Version:
Tuesday, 21-Jun-2005 12:21:28 ADT
CS 4173 Prof:
J. Blustein <jamie@cs.dal.ca>
Shortcuts
Accesskey menu
Sitemap
Site search

Valid XHTML 1.0!