It is currently 25 Sep 2017 5:04


Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 20 Jul 2011 8:38 
Offline
Nouveau
Nouveau
User avatar

Joined: 20 Nov 2009 12:00
Posts: 23
how do we configure a job to watch multiple files on a server , how it can be done with Rule.dat of ctmfw. Can anybody share the sample rule file to do so.

Any help highly appreciated.

Razique


Top
   
 Post subject:
PostPosted: 22 Jul 2011 2:53 
Offline
Nouveau
Nouveau
User avatar

Joined: 01 Jul 2011 12:00
Posts: 1
Why do you want to do it in one job? You can set up mutiple jobs with one OUT condition on it, so that once one has finished the next job will run.

Also you can watch with file mask but then youre files have to be in the same directory.

Something like

/dir/file1
/dir/file2
/dir/file3

with ctmfw job for /dir/file*

if one of those files will be there the job will pick it up.


Top
   
PostPosted: 26 Jul 2011 8:08 
Offline
Nouveau
Nouveau
User avatar

Joined: 10 May 2010 12:00
Posts: 27
it can be achieved by suing the " ctmfw -input rule.dat "

please have look at the bmc documents of ctmfw and clearly mentioned with examples.


Top
   
 Post subject:
PostPosted: 05 Jan 2012 12:00 
Offline
Nouveau
Nouveau
User avatar

Joined: 02 Jan 2012 12:00
Posts: 3
Hello,

Here is an example. Define a Filewatcher job with the command to call : ctmfw -input FILE_WAIT_SATDB

and the content of file FILE_WAIT_SATDB :
#************************
#
# ON_FILEWATCH statements
ON_FILEWATCH /data/satdb/staging/AV/*.xpt CREATE
THEN
DO_EXIT 0
END_ON
ON_FILEWATCH /data/satdb/staging/AV/*.XPT CREATE
THEN
DO_EXIT 0
END_ON
ON_FILEWATCH /data/satdb/staging/AV/*.rtf CREATE
THEN
DO_EXIT 0
END_ON


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


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:  
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