[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can't redirect to `/dev/stderr' (Permission denied)
From: |
Hans-Bernhard Broeker |
Subject: |
Re: Can't redirect to `/dev/stderr' (Permission denied) |
Date: |
22 May 2001 18:57:16 GMT |
Davis, Ricardo C. <address@hidden> wrote:
> $ gawk '{print $0 > "/dev/stderr";}' gawktest
> gawk: cmd. line:1: (FILENAME=gawktest FNR=1) fatal: can't redirect to
> `/dev/stderr' (Permission denied)
> __________________________________________________________________________
The obvious first thing to test: does /dev/stderr still exist? Some
berserk installation program or whatever might have deleted it.
> This should have printed each line of input on stderr. Using "/dev/fd/2"
> instead of "/dev/stderr" yields the same error.
Same problem: check whether the device file is still there.
> Hmmm ... does gawk use mktemp? I suspect it probably does and that the most
> recent version has caused the problem.
Almost certainly not. The package mktemp is a separate utility for use
by shellscripts. Compiled apps like gawk use the C library function of
the same name, which is not part of that rpm package.
--
Hans-Bernhard Broeker (address@hidden)
Even if all the snow were burnt, ashes would remain.