-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 28 April 2004 21:31, Toad wrote: > On Tue, Apr 27, 2004 at 11:12:39PM -0500, Conrad Sabatier wrote: > > > > On 27-Apr-2004 Toad wrote: > > > On Thu, Apr 08, 2004 at 09:11:17PM -0500, Conrad Sabatier wrote: > > >> Just noticed after I had uploaded the log rotate script that the date > > >> command > > >> was being used in two locations. Stoopid. > > > > > > Uhm, what exactly is this supposed to do? > > > > Well, you know, rotate the log file. :-) > > > > > If you are not using > > > logRotate=true in the config file, then the node will just keep writing > > > to the first logfile, so it gets longer and longer and longer... > > > > The script archives the log file and clears it as well. > > Won't work. > You have to restart the node. > The node writes to the fd, not the file.
This is what I though too, but then i tried it $ cat > foo a b c on another console $ cat foo a b c $ echo > foo $ then type something in the "cat" console a b Switch to the "echo" console: $ cat foo a b The bash redirector apparently doesn't unlink the original file, it keeps operating on the same inode - something that I didn't know until this ;). - -- Roger Oksanen <[EMAIL PROTECTED]> +358 50 355 1990 CS Student at Helsinki University PGP id 1B125A3E Homepage http://www.cs.helsinki.fi/u/raoksane/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQFAkDSR78OZUBsSWj4RArwyAKCSGoj8f5KwhSBsG86N2NIMUKGtkgCguHQD Wq+OAp0IHUMCX+FJbmRPrKo= =1NTm -----END PGP SIGNATURE----- _______________________________________________ Support mailing list [EMAIL PROTECTED] http://news.gmane.org/gmane.network.freenet.support Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support Or mailto:[EMAIL PROTECTED]
