Computing.Net > Forums > Unix > how can I clean the /var/adm/cron/l

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

how can I clean the /var/adm/cron/l

Reply to Message Icon

Name: babyzhou
Date: April 2, 2007 at 20:12:01 Pacific
OS: AIX 5.2
CPU/Ram: four
Product: IBM
Comment:

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



Sponsored Link
Ads by Google

Response Number 1
Name: wollie
Date: April 2, 2007 at 23:22:43 Pacific
Reply:

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


0

Response Number 2
Name: babyzhou
Date: April 3, 2007 at 00:55:22 Pacific
Reply:

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


0

Response Number 3
Name: wollie
Date: April 3, 2007 at 02:26:44 Pacific
Reply:

Hi ,

I'm not familiar with the construct "1.# > ..."
Could you explain it ?

cheers
Wollie


0

Response Number 4
Name: babyzhou
Date: April 3, 2007 at 18:09:43 Pacific
Reply:

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.com

The 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?


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


GAWK variable problem how to calculate days bet...



Post Locked

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


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: how can I clean the /var/adm/cron/l

how can I get the full path of a running program ? www.computing.net/answers/unix/how-can-i-get-the-full-path-of-a-running-program-/1357.html

How can I dual boot the Sun Solaris and Windows98 www.computing.net/answers/unix/how-can-i-dual-boot-the-sun-solaris-and-windows98/821.html

how can i password protect a folder (directory)in unix www.computing.net/answers/unix/how-can-i-password-protect-a-folder-directoryin-unix/577.html