From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653643321666.tru64-unix-managers.marc@archive.invalid> From: "Myszkowski.Mark" Date: Thu, 08 Nov 2001 16:11:44 +0000 To: tru64-unix-managers Subject: SUMMARY: Problem using cat /dev/null X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653643321666 MIME-Version: 1 Content-Type: multipart/mixed; boundary="------_=_NextPart_001_01C16870.0F6E3070" This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C16870.0F6E3070 Content-Type: text/plain; charset="iso-8859-1" Thank you. I got many responses but I think we will implementing a solution along the lines of this suggestion. >From Narendra Raavi If the file is still open, and busy, you cannot reset the log file. We have had this problem, but have solved it in a different way. We get the process/program to write to a named pipe. We have another (Perl) program that reads the pipe and writes to a log file while periodically, switching log file extensions, based on the size of the log file. Hello, I am trying to use cat /dev/null > a.log to reset a log file. Unfortunately, when I do this the log file returns to it's original size the next time that the application writing to that log makes an update. How can I reset a log that is being written to by a program without stopping the program? Thank you, Mark Myszkowski ------_=_NextPart_001_01C16870.0F6E3070 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable SUMMARY: Problem using cat /dev/null

Thank you.  I got many = responses but I think we will implementing a solution along the lines = of this suggestion.

From Narendra Raavi

If the file is still open, and = busy, you cannot reset the log file. We have
had this problem, but have = solved it in a different way.

We get the process/program to = write to a named pipe. We have another (Perl)
program that reads the pipe and = writes to a log file while periodically,
switching log file extensions, = based on the size of the log file.



Hello,
I am trying to use
cat /dev/null > a.log
to reset a log file.  = Unfortunately, when I do this the log file returns to it's original = size the next time that the application writing to that log makes an = update.  How can I reset a log that is being written to by a = program without stopping the program?

Thank you,

Mark Myszkowski

------_=_NextPart_001_01C16870.0F6E3070--