House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

ColdFusion 8 directory watcher event gateway

  << Previous Post |  RSS |  Tree View |  Sort Oldest First |  Subscribe to this Group Next >> 

cf8 directory watcher event gateway

ok, i figured it out :) i think. Tony 05/21/2008 10:39 AM
i dont believe that its a timer. Tony 05/21/2008 09:57 AM
Well, thats weird. I am going to assume that there is a timer for the Andrew Scott 05/21/2008 12:39 AM
exsqueeze me :) Tony 05/20/2008 10:01 PM
What events are you watching? Andrew Scott 05/20/2008 07:57 PM
hi all. Tony 05/20/2008 03:49 PM

05/21/2008 10:39 AM
Author: Tony Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:56468#305821 ok, i figured it out :) i think. basically i had the timer set for 10 milliseconds ... way too much and too fast. so, ive set it to 5 seconds and all is working as expected! thanks! tony ----- Excess quoted text cut - see Original Post for more -----
05/21/2008 09:57 AM
Author: Tony Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:56468#305816 i dont believe that its a timer. that would be weird... here is the 1st email i get... for a file that just changed a few minutes ago... ==================================================== A file has been changed. struct   CFCMETHOD   onChange    CFCPATH   S:\reports\version4.0\cfc\root_productionCodeMover.cfc    DATA   struct   FILENAME   s:\reports\version4.0\shorty.txt    LASTMODIFIED   {ts '2008-05-20 15:30:26'}    TYPE   CHANGE    GATEWAYID   ProductionCodeMover_root    GATEWAYTYPE   FileWatcher    ORIGINATORID   [empty string]    ==================================================== and here is the 2nd email that i get... ==================================================== A file has been changed. struct   CFCMETHOD   onChange    CFCPATH   S:\reports\version4.0\cfc\root_productionCodeMover.cfc    DATA   struct   FILENAME   s:\reports\version4.0\shorty.txt    LASTMODIFIED   {ts '2008-05-21 09:53:39'}    TYPE   CHANGE    GATEWAYID   ProductionCodeMover_root    GATEWAYTYPE   FileWatcher    ORIGINATORID   [empty string]    ==================================================== what the effffff????/ thanks for any insight! tony ----- Excess quoted text cut - see Original Post for more -----
05/21/2008 12:39 AM
Author: Andrew Scott Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:56468#305788 Well, thats weird. I am going to assume that there is a timer for the watching of the directory then, not sure on that. But your problem is a weird one, I suggested the delete event because I got caught in .Net for that once before so was curious if this was the case here. ----- Excess quoted text cut - see Original Post for more -----
05/20/2008 10:01 PM
Author: Tony Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:56468#305785 exsqueeze me :) im watching the "onChange" event. and having it send me an email. so, what you are saying is that i need to turn the onDelete event off and that will stop the behaviour i am seeing? because the ACT of editing a file in "system speak" is a deletion then a re-creation from memory? wow, i figured it was something odd like that. and even more odd.  if i put more time between the editing of the file, it sometimes WOULDNT do two events, and only would do one event.  wonder why? thanks tony ----- Excess quoted text cut - see Original Post for more -----
05/20/2008 07:57 PM
Author: Andrew Scott Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:56468#305781 What events are you watching? Editing a file, deletes then recreates from memory. So you will get two emails if you are watching both these events. ----- Excess quoted text cut - see Original Post for more -----
05/20/2008 03:49 PM
Author: Tony Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:56468#305765 hi all. i have an event gateway test app using the directory watcher and its working, i have it setup to send me an email everytime a file changes.. problem is, is that im testing with a simple text file, and when i make a change and save the file, i get two emails :( one email for the previous change, and one email for the current change. if i do it again, same thing.  one email that matches the previous email, and one new one. ideas? thanks! tony -- 'Never have anything in your life that you can't walk out on in thirty seconds flat, if you spot the heat coming around the corner' robert deniro - heat (1995)
<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

May 24, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
     1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31     

Designer, Developer and mobile workflow conference