It is currently 22 Nov 2017 2:35


Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 11 Jul 2013 2:10 
Offline
Nouveau
Nouveau
User avatar

Joined: 25 May 2011 12:00
Posts: 20
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.


Top
   
 Post subject:
PostPosted: 22 Jul 2013 5:05 
Offline
Nouveau
Nouveau
User avatar

Joined: 28 Jul 2011 12:00
Posts: 46
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited
The site created by Franck YOT. Images, logo, content and trademarks about Control-M products are property of BMC Software.
All the comments are property of their posters. Images, logo, content and design are © copyright by Scheduler-Usage.com. All Rights Reserved