NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

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

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@xxxxxx

Cheers,

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


  • 2008 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the ldm-users archives: