Consultor Eletrônico



Kbase P19757: What is the best way on Unix to truncate AdminServer, NameServer, WebSpeed or AppServer log files wh
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   08/09/2008
Status: Verified

GOAL:

What is the best way on Unix to truncate WebSpeed log files while broker is running?

GOAL:

What is the best way on Unix to truncate AppServer log files while broker is running?

GOAL:

What is the best way on Unix to truncate the AdminServer log file while broker is running?

GOAL:

What is the best way on Unix to truncate the NameServer log file while broker is running?

FACT(s) (Environment):

WebSpeed 3.x
OpenEdge 10.x
Progress 9.x
UNIX

FIX:

If just need to truncate the file " > log" would do it.
If need to save some of the entries, then following will work:

tail log > /tmp/$$.log.tmp
> log
cat /tmp/$$.log.tmp >> log
rm /tmp/$$.log.tmp