Scheduler Usage
http://scheduler-usage.com/

CTMLOG Utility to cleardown Logs
http://scheduler-usage.com/viewtopic.php?f=12&t=3594
Page 1 of 1

Author:  karan [ 11 Jul 2013 2:10 ]
Post subject:  CTMLOG Utility to cleardown Logs

Hi

I want to clear files with the name of "Log_yymmdd" under /tmp Dir using ctmlog. The command should be able to clear files that are a week old.

Please help.

Author:  Manii [ 22 Jul 2013 5:05 ]
Post subject: 

Hi Karan,

below is the command to delete the files older than 7 days under temp directory , you dont need to give the file name

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

This is not CTM utility , It OS native command find and delete the files

=======================
however ctmlog utility will be run as follow
Command - ctmlog delete YYYYMMDD HHMM YYYYMMDD HHMM

Exp :- ctmlog delete 20130720 0000 20130721 0000

output of above would be :-

CTMLOG:Log was successfully deleted.

Page 1 of 1 All times are UTC+01:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/