[ldm-users] 20080410: How to rotate pqact.log (cont.)

Tom Yoksas yoksas at unidata.ucar.edu
Thu Apr 10 09:32:35 MDT 2008


Hi Kevin,

Oops, I meant that the last to read:

cat /dev/null > pqcat.log

'cat' instead of 'cp'.

Sorry for the typo.

>>Hi Minaketan,
>>
>>re:
>>> I like to rotate pqact.log everyday midnight. However pqact keeps open
>>> pqact.log file descriptor.
>>>
>>> pqact -l logs/pqact.log
>>>
>>> Any help is appreciated.
>>
>>If you only want to keep two pqact.log log files on disk, a simple
>>approach is to do the following:
>>
>><as 'ldm'>
>>cd ~ldm/logs
>>cp pqact.log pqact.log.1
>>cp /dev/null > pqact.log
>
>Make that last line:
>
>cp /dev/null pqact.log
>
>	Kevin W. Thomas
>	Center for Analysis and Prediction of Storms
>	University of Oklahoma
>	Norman, Oklahoma
>	Email:  kwthomas at ou.edu

Cheers,

Tom
--
+----------------------------------------------------------------------------+
* Tom Yoksas                                            UCAR Unidata Program *
* (303) 497-8642 (last resort)                                 P.O. Box 3000 *
* yoksas at unidata.ucar.edu                                  Boulder, CO 80307 *
* Unidata WWW Service                            http://www.unidata.ucar.edu/*
+----------------------------------------------------------------------------+


More information about the ldm-users mailing list