From: Steven Parkes Date: 2010-01-16T08:46:57+09:00 Subject: Re: How to know if $stderr is reopened to /dev/null > Hi, how could I know if $stderr has been redirected to /dev/null? On anything sufficiently Unix-like, you could fstat the filehandle and stat the path (/dev/null) and check the major and minor device numbers.