safecat

Safely copy stdin to a file
  http://pobox.com/~lbudney/linux/software/safecat.html
  0
  no reviews



Safecat is a program which implements Daniel Bernstein's maildir algorithm to copy stdin safely to a file in a specified directory. It can be used to write mail messages to a qmail-style maildir, or to write data to a "spool" directory reliably.