Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
The file of /var/adm/cron/log have ninety-four Mb,I want to clean the log,how to fix it? and can i clean the log?Thanks

hi Babyzhou,
issue a find - command to select those files older than e.g. 8 days and delete them.
This command can be put into the ctontab file and be executed on a daily basis.00 04 * * * find /var/adm/cron/log -ctime +8 -exec rm -f {} \;
(will delete all files older then 8 days, every day at 4am)cheers
Wollie

Dear wollie:
Thanks,Your methods is very available.
anthor method:
1.#>/var/adm/cron/log
Wollie,Do you think?

Hi,wollie
I'm from China,I working in Hangzhou,Maybe,my writing english is not very well.but,I will improve my English Writing;English is an important language, because it is the most widely used in the world.I want to make friends with you,Do you want to make friends with me?.^_^
My MSN:zbin530@hotmail.comThe construct is "#>/var/adm/cron/log ",
It's mean that the construction of "#>/var/adm/cron/log " was clean empty;Wollie,Do you know,now?

![]() |
GAWK variable problem
|
how to calculate days bet...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |