Operating System - HP-UX
1751903 Members
5165 Online
108783 Solutions
New Discussion юеВ

Script is required to remove the old log files ?

 
S.Srinivasan
Occasional Contributor

Script is required to remove the old log files ?

i need some script to remove the old log files in my server not all the log files still i need last one week log files in my server.
Very dynamic & helpful
3 REPLIES 3
Torsten.
Acclaimed Contributor

Re: Script is required to remove the old log files ?

You are in the general server forum - you need to specify your OS at least!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Pete Randall
Outstanding Contributor

Re: Script is required to remove the old log files ?

find /log_dir -type f -mtime +7 -exec rm {} \;


Pete

Pete
S.Srinivasan
Occasional Contributor

Re: Script is required to remove the old log files ?

My server is running with HPUX verson is 11.11 64 bit kernel
Very dynamic & helpful