It is currently 17 Oct 2017 3:48


Post new topic  Reply to topic  [ 9 posts ] 
Author Message
PostPosted: 23 Apr 2007 5:02 
Offline
Nouveau
Nouveau
User avatar

Joined: 03 Jul 2006 12:00
Posts: 42
Location: London´
Hi, I am performing a file watch on a file that contains a wild card:-

ctmfw "E:\Interfaces\tmp\axa_to_jpm_fx_q_to_file*.txt" CREATE 1 1 3 3 10 Y

I want the job to fail unless the file it finds is at least 1 byte in size.

I have read that by adding the Y at the end of the command line, that it will take size into account, but this is not working.

Any ideas? :?:


Top
   
 Post subject:
PostPosted: 24 Apr 2007 5:14 
Offline
Nouveau
Nouveau
User avatar

Joined: 26 Apr 2005 12:00
Posts: 696
Location: PARIS
Hi,

Ctmfw and wilcard run together only to test file creation.
Try again with simple quote.

ctmfw 'E:\Interfaces\tmp\axa_to_jpm_fx_q_to_file*.txt' CREATE 1 1 3 3 10 Y


Top
   
 Post subject:
PostPosted: 25 Apr 2007 11:49 
Offline
Nouveau
Nouveau
User avatar

Joined: 03 Jul 2006 12:00
Posts: 42
Location: London´
Many thanks.

I tried again using the single quotes and it worked fine. Even taking the size into the equation.

Deano


Top
   
 Post subject:
PostPosted: 02 May 2007 10:15 
Offline
Nouveau
Nouveau
User avatar

Joined: 03 Jul 2006 12:00
Posts: 42
Location: London´
Oops! This only half works!!

The command above will fail if a 0 byte file is detected, but will not complete successfully if a file of 1 byte or greater is detected.

So, unfortunately, this is not a solution. It looks like a command file is the only way to perform this task.


Top
   
 Post subject:
PostPosted: 24 Jul 2007 7:06 
Offline
Nouveau
Nouveau
User avatar

Joined: 08 Jun 2007 12:00
Posts: 807
Location: Varese - Italy
From the ctmfw documentation for CREATE mode:

"Detects creation of a file. Default. File size is ignored if the filename
parameter contains wildcards (unless the monitor file size when
wildcard is used parameter is set to Y).

Note: If a mask is specified for the filename, and the monitor file size
when wildcard is used parameter is set to
■ N, the ctmfw utility will end OK after detection of the first file that
matches the specified mask.
■ Y, the ctmfw utility will end OK after detection of the first file that
matches the filename and file size. "

and more:
"If this parameter is set to Y and more than one file matches the specified mask, the ctmfw utility randomly selects one matching file, monitors its file size, and ignores all other matching files."

The monitor of the creation and the size works only for the FIRST file, the others are not monitored. This can be your problem like was for me.
If you want to monitor the creation and the size grow of all the files, you must run the utility for all the files.


Top
   
 Post subject:
PostPosted: 15 Jan 2011 7:29 
Offline
Nouveau
Nouveau
User avatar

Joined: 15 Jan 2011 12:00
Posts: 1
Wonderful post...

_________________
Ahmed faraz shayari


Top
   
 Post subject:
PostPosted: 16 Feb 2012 12:26 
Offline
Nouveau
Nouveau
User avatar

Joined: 16 Feb 2012 12:00
Posts: 23
A really nice idea. I appreciate it much !


Top
   
 Post subject:
PostPosted: 08 Jan 2013 7:04 
Offline
Nouveau
Nouveau
User avatar

Joined: 08 Jan 2013 12:00
Posts: 1
Hi thanks for share awesome ideas keep it up

_________________
songs.pk


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

All times are UTC+02: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