SPUG:Broken Pipe
Chris Wilkes
cwilkes-spug at ladro.com
Mon Mar 17 13:28:20 CST 2003
On Mon, Mar 17, 2003 at 11:11:12AM -0800, Martin, Asa wrote:
> This is sort of a unix question and sort of a perl question, but does
> anybody know how to get rid of the annoying Broken Pipe message that
> occurs when I run a system command from within my script and then
> interrupt the system call in the middle. I'm doing a traceroute and I
> want to interrupt the trace if it returns "* * *", but when I do that
> it returns "Broken Pipe".
Take a look at these perldocs
perldoc -q signal
perldoc perlipc
In a nutshell: you trap various $SIG{level}'s and then do something with
them.
There's also a Net::Traceroute module out there. Haven't used it
though.
Chris
More information about the spug-list
mailing list