[cfaussie] Re: Pausing CFML (Was RE: [cfaussie] Re: CFEXECUTE .bat files)
Hey Guys, There is a Pause Function within ColdFusion you can use to pause the ColdFusion process then loop over that each time until a file is created or what ever you want to do. Tis very cool Jeremy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: Pausing CFML (Was RE: [cfaussie] Re: CFEXECUTE .bat files)
I was thinking an event could be raised when the batch file was done running? Or something could poll to check if the batch file had run? Mark Mandel wrote: 'Asynchronous' by it's very nature does not 'wait' for processing to finish - so the answer would be 'no'. Mark On 3/20/06, *Haikal Saadh* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Could something similar to this be accomplished using CF7's asynchronous gateway? (don't have 7, so don't know) -- E: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] W: www.compoundtheory.com http://www.compoundtheory.com ICQ: 3094740 -- Haikal Saadh, Applications Programmer Teaching and Learning Support Services K405, Queensland University of Technology, Kelvin Grove Campus [EMAIL PROTECTED], 3864 8633 CRICOS No. 00213J --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Pausing CFML (Was RE: [cfaussie] Re: CFEXECUTE .bat files)
I realize Jeremy ultimately solved his problem, but for what it's worth, I'll note that you can indeed cause CF to pause. It's new as of CFMX, leveraging its underlying reliance on java. It doesn't cause a CPU loop or other wasteful processing, but instead literally puts the thread to sleep for x milliseconds. The following will pause for 2 seconds: cfscript createobject(java,java.lang.Thread).sleep(2000); /cfscript I wrote a blog on it with more detail, including a function to do it accepting the time passed in, in 2002: http://cfmxplus.blogspot.com/2002/10/pausing-your-cfmx-code.html I'll point out as well that after I joined New Atlanta, I got us to add a CFPAUSE tag (CFPAUSE Interval=x). Charlie Arehart CTO, New Atlanta Communications, makers of BlueDragon (678) 256-5395 [EMAIL PROTECTED] www.newatlanta.com/bluedragon/ -Original Message- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Toby Tremayne Sent: Tuesday, March 14, 2006 9:06 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: CFEXECUTE .bat files Hi Jeremy, there's still no guaranteed way to have coldfusion pause, but you can do something like have your batch file create an empty file, and have coldfusion loop until that file exists - then deleting it and moving on. cheers, Toby On 15/03/2006, at 12:44 PM, cfgroupie [EMAIL PROTECTED] wrote: Hi guys, My little team has decided to build an installer for our web application. We got it down pat, execpt one little issue with .bat files. We are looping over environments i.e. Test, Train, Production. Each one we need to copy over code to the relevant environment. What we have found is that coldfusion is to fast for the .bat file to run its xcopy commands. Is there a way to wait for the .bat to finish before we go to the next instance of the loop? cfexecute name=c:\copyit.bat timeout=600/cfexecute Jeremy --- Life is poetry, write it in your own words --- Toby Tremayne Senior Technical Consultant Lyricist Software 0416 048 090 ICQ: 13107913 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: CFEXECUTE .bat files
why not just put it in one bat file? -Original Message- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] Behalf Of cfgroupie Sent: Wednesday, March 15, 2006 12:44 PM To: cfaussie Subject: [cfaussie] CFEXECUTE .bat files Hi guys, My little team has decided to build an installer for our web application. We got it down pat, execpt one little issue with .bat files. We are looping over environments i.e. Test, Train, Production. Each one we need to copy over code to the relevant environment. What we have found is that coldfusion is to fast for the .bat file to run its xcopy commands. Is there a way to wait for the .bat to finish before we go to the next instance of the loop? cfexecute name=c:\copyit.bat timeout=600/cfexecute Jeremy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: CFEXECUTE .bat files
Because we are changing contents of files for each environment i.e. Production, Train, Test. Therefore we need to loop over it each time. I have found other thing which I find odd. In our development environment when I use cfexecute it seems to be trying to execute it from the following path. C:\JRun4\binxcopy c:\2_3 c:\2_4 /e /i /y When in my code I tell it to run from the cmd...what the? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: CFEXECUTE .bat files
Hi Jeremy, there's still no guaranteed way to have coldfusion pause, but you can do something like have your batch file create an empty file, and have coldfusion loop until that file exists - then deleting it and moving on. cheers, Toby On 15/03/2006, at 12:44 PM, cfgroupie [EMAIL PROTECTED] wrote: Hi guys, My little team has decided to build an installer for our web application. We got it down pat, execpt one little issue with .bat files. We are looping over environments i.e. Test, Train, Production. Each one we need to copy over code to the relevant environment. What we have found is that coldfusion is to fast for the .bat file to run its xcopy commands. Is there a way to wait for the .bat to finish before we go to the next instance of the loop? cfexecute name=c:\copyit.bat timeout=600/cfexecute Jeremy --- Life is poetry, write it in your own words --- Toby Tremayne Senior Technical Consultant Lyricist Software 0416 048 090 ICQ: 13107913 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: CFEXECUTE .bat files
It does wait for the call to finish, so if it's not waiting, then your batch file is returning instantly. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---