g...@wooledge.org (12024-11-21):
> Checking my local Debian man pages now, however, I see that Debian's dd
> (GNU coreutils) *does* offer an append option.
> 
>     dd oflag=append conv=notrunc of="$file"
> 
> So I guess that's another viable choice, as long as your target system
> has GNU coreutils.

dd has other drawbacks, from printing a status summary that is
completely useless in this case to the fact that it controls the block
size in a way that might not be what we want.

Tu perform a redirection and only a redirection with root privileges,
there is the execline infrastructure:

sudo /usr/lib/execline/bin/redirfd -w 1 /output/file cat

See https://skarnet.org/software/execline/redirfd.html for details.

Regards,

-- 
  Nicolas George

Reply via email to