From: Mark Bush Date: 2008-03-14T17:51:03+09:00 Subject: Re: script runs ok alone, broken pipe when piped to head? Dave Burns wrote: > So to get my script to act like a responsible command line citizen, > I'd need to insert some error handling and return normally when the > pipe breaks, right? Since your script is, basically, in the business of doing IO, then yes, it is probably worth catching IO exceptions and exiting cleanly. -- Posted via http://www.ruby-forum.com/.