tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: /bin/sh redirect without command failure mode



> One final note. redirects without command words are a very rare beast.
> They do nothing normally useful,

As admin I quite often use a simple

	> foo.log

to truncate a file back down to zero bytes after some incident causing
the log to be insanely large.  The redirect doesn't meddle with ownerships
and permissions, and a running daemon can continue to write to the very
same file descriptor.

						Martin Neitzel


Home | Main Index | Thread Index | Old Index