> >That should work, for example > gawk '{print $0 > "/dev/stderr";}' >copies its input to stderr. > >It's not a permissions problem; /dev/std{in,out,err} and /dev/fd/n are >implemented internally by gawk. They're not really files on the >system. Well, actually /dev/fd/n really is a symlink into the /proc >filesystem, but gawk isn't using it. > >Is your gawk really gawk, not an alias for nawk or something? I'm not >sure if those files are supported by nawk. > >You could also use /dev/fd/2 which will use the /proc system. > > >Guy > 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) it works fine if i do it as root. for all it's worth i think i am using gawk, this is the output from dpkg -i: ii gawk 3.0.0-2 GNU awk, a pattern scanning and processing l maybe i should try using a different version of gawk. --alex-- -- | I believe the moment is at hand when, by a paranoiac and active | | advance of the mind, it will be possible (simultaneously with | | automatism and other passive states) to systematize confusion | | and thus to help to discredit completely the world of reality. |