Here is a clue .. I have not done this, but I understand that
it is possible to run an ioctl on a file descriptor to determine the
nature of the descriptor, such as , is it a tty, or a pipe, or
a file, or what.


On 12/9/05, Phil Rafferty <[EMAIL PROTECTED]> wrote:

> Can I find out
>   1) whether redirection has been specified?
>   2) if it has, which handle - STDOUT and/or
> STDERR - has been redirected?
>   3) and also, if redirected to a file or another
> script, the name of
>      the file or script?
>
> *any* clues would be most appreciated.
>
>
> Phil Rafferty
>
>
> _______________________________________________
> ActivePerl mailing list
> [email protected]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>


--
David L Nicol
I'll see your time division multiplexing and
raise you an asynchronous trap

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to