ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General Discussion » Trigger Monitor housekeeping how??

Post new topic  Reply to topic
 Trigger Monitor housekeeping how?? « View previous topic :: View next topic » 
Author Message
loodeen
PostPosted: Wed Dec 10, 2003 6:00 pm    Post subject: Trigger Monitor housekeeping how?? Reply with quote

Newbie

Joined: 18 Nov 2003
Posts: 9

I am currently running a trigger monitor using 'nohup' command so all the output will be directed to a file. My problem is how to housekeep the outputed file properly. The trigger monitor is running 24hrs a day, 7 days a week.
Back to top
View user's profile Send private message
dgolding
PostPosted: Thu Dec 11, 2003 2:02 am    Post subject: Reply with quote

Yatiri

Joined: 16 May 2001
Posts: 668
Location: Switzerland

here's one way to do it - write a cron job that every night does a "tail -500" (or whatever number of lines that takes your fancy) on the output file and redirect it to another file. Then "cat" it back into the original file:

tail -500 out_file > new_file
cat new_file > out_file

Don't forget to capture error output as well as standard output:

runmqtrm > out_file 2>&1 # I can never remember this form!

HTH
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » Trigger Monitor housekeeping how??
Jump to:  



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 vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.