Re: writing to /dev/stderr
On Fri, 30 Aug 1996, Alex Romosan wrote:
> i've tried:
>
> echo test | gawk '{print $0 > "/dev/stderr";}'
>
> and
>
> echo test | gawk '{print $0 > "/dev/fd/2";}'
>
> and both give me the same error:
>
> gawk: cmd. line:1: (FILENAME=- FNR=1) fatal: can't redirect to
> `/dev/fd/2' (Permission denied)
Check that /dev/fd is a symbolic link to /proc/self/fd. Check that
/proc is mounted.
The permissions to /proc are determined by the kernel, so there's
really no way that they could be wrong.
Guy
Reply to: