Re: CFexecute and licenses
Ok, we have a program that we are running using cfexecute. It requires the license for that program to be placed in the folder that holds the program that calls it. Right now, the program doesn't run since cfexecute is the calling program. In this case, thus I assume I'll need to place the program's license file somewhere in a coldfusion folder. So, where do I put it? CFIDE? Jrun? You could call cmd.exe and pass this program as an argument to it, then put the license in your system folder. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343562 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFexecute and licenses
Ok, we have a program that we are running using cfexecute. It requires the license for that program to be placed in the folder that holds the program that calls it. Right now, the program doesn't run since cfexecute is the calling program. In this case, thus I assume I'll need to place the program's license file somewhere in a coldfusion folder. So, where do I put it? CFIDE? Jrun? You could call cmd.exe and pass this program as an argument to it, then put the license in your system folder. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343563 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFexecute and licenses
The program is a batch screen capture program. Got the cfexecute to work by putting the license in the jrun folder. So that worked! But now it fails to load the flash plug-in that accompanies IE 8. It works like a charm if run by clicking on a batch file that resides in the folder that has the exe. How to get it to capture a flash website is my next challenge. Any insight to that would be greatly appreciated. Thanks. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343564 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: cfexecute running a batch file not return all the output
We are using cfexecute to run an ant script ... I am definitely not the one to advise you on ant ;-) But if it writes to stderr, you may want to try redirecting stderr in your cfexecute call. Just for grins. There were a few issues with that in earlier versions. Though I think that issue was corrected in one of the CF8 updates. http://www.forta.com/blog/index.cfm/2006/9/11/A-Couple-Of-CFEXECUTE-Gotchas -Leigh ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327498 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfexecute running a batch file not return all the output
On Thu, Oct 22, 2009 at 6:57 AM, Leigh cfsearch...@yahoo.com wrote: I am definitely not the one to advise you on ant ;-) But if it writes to stderr, you may want to try redirecting stderr in your cfexecute call. Just for grins. There were a few issues with that in earlier versions. Though I think that issue was corrected in one of the CF8 updates. http://www.forta.com/blog/index.cfm/2006/9/11/A-Couple-Of-CFEXECUTE-Gotchas Yep, that was the fix. I didn't realize the error output and standard output is virtually identical to the eye or that cfexecute doesn't read error output. Redirecting it to stdout did the trick. Thanks! Scott -- - Scott Brady http://www.scottbrady.net ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327499 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfexecute running a batch file not return all the output
Yep, that was the fix. I didn't realize the error output and standard output is virtually identical to the eye or that cfexecute doesn't read error output. Yes, neither did I until I ran into the same problem ;-) Cheers -Leigh ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327500 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfexecute to wait
in case anyone stumbles on this thread and has a similar issue, i managed to do a work around which looks at the file size every 3 seconds. if the file size has changed it reloops as it knows it is still building it. when the file size does not change then it knows it has finished and comes out of the loop: cfset sleepObject = createObject(java, java.lang.Thread) / cfset executeComplete = false / cfset currentFileSize = 0 / !--- run through a loop every 5 seconds to see if the size of the file has changed, if yes then it means it is still executing, else it has finished and the loop can stop --- cfloop condition=executeComplete eq false cfset sleepObject.sleep(5000) cfset fileSize = getfileinfo(#filepath#.sql) / cfif fileSize.Size neq currentFileSize cfset currentFileSize = fileSize.Size / cfelse cfset executeComplete = true / /cfif /cfloop hi i am running a cfexecute to run the mysqldump command at set times of the day. i want it to produce the dump file, zip up the file, and then email it to us before deleting the files. i have got it all working but the problem is: how can i detect when a cfexecute has finished. i could obviously set a timeout on the tag but the timeout varies and sometimes takes very long. the problem is that even if the dump has not finished the cfzip command starts to run thanks for any help richard ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321410 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: CFexecute Tag
Are you logged in to the server's console using the same credentials as the CF service? If the CF service is running as a different user, then it can't display a window in another user's session. Mike -Original Message- From: Don L [mailto:[EMAIL PROTECTED] Sent: Sunday, October 19, 2008 4:34 PM To: cf-talk Subject: CFexecute Tag I don't understand why the following code, won't bring up a 'window' of 'DOS' command prompt on my server/local box. OS=Windows XP; CF version=CF8 Standard (licensed copy). cfexecute name = C:\Windows\System32\cmd.exe /cfexecute No error code, no security issue. I also try the notepad.exe with same outcome. What's the expected result for CFEXECUTE (last time I used it probably years ago...). Thanks. Chunshen Li (Don) ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314135 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: CFexecute Tag
Are you logged in to the server's console using the same credentials as the CF service? If the CF service is running as a different user, then it can't display a window in another user's session. Mike Good thought, Mike, thank you. So, I reset cf8 logon account to be the same as XP logon session/account and restarted, and went a step further, disabled firewalls including XP's own, however, same outcome (the command prompt did not show up). What else could be in the way? Don ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314149 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: CFexecute Tag
Good thought, Mike, thank you. So, I reset cf8 logon account to be the same as XP logon session/account and restarted, and went a step further, disabled firewalls including XP's own, however, same outcome (the command prompt did not show up). What else could be in the way? By default, services don't interact with the desktop, even if the service is running in the same context as the logged-in user. I'm pretty confident you'd see the process in Task Manager, though. To enable desktop interaction, check the Allow service to interact with desktop option in the Log On tab for the service in the Services control panel. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314150 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: cfexecute and ffmpeg
Just had a read of the fixes in CF 8.0.1 and discovered errorVariable is a new attribute for cfexecute. I knew I'd heard something like that. All sorted now :O) Adrian -Original Message- From: Adrian Lynch Sent: 20 October 2008 18:29 To: cf-talk Subject: cfexecute and ffmpeg I thought I had this sorted a while ago but now the problem has changed slightly and I'm not sure how to fix it. I've used ffmpeg in the past to convert to .flv files and that's all working. But now I want to use it to get the dimensions of a video without converting. If you use the following on the command line: ffmpeg -i some_file.mpg You get an error but in that error are the dimensions of the video. I want this available to me in CF so I can extract it. I would prefer to have the output in a variable and not written to a file. Can anyone suggest what might be wrong with the following line: cfexecute name=ffmpeg.exe arguments=-i #LOCAL.file_details.file_path# timeout=2 variable=LOCAL.output / cfdump var=#LOCAL.output# I've tried no timeout, a timeout of 0, of 1, of 99 and still LOCAL.output is an empty string. My though is that ffmpeg is actually throwing an error and so this isn't available as the output of cfexecute. Any thoughts? Thanks. Adrian Lynch Building a database of ColdFusion errors at http://cferror.org/ ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314154 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFexecute Tag
Don, May be inserting a timeout parameter could be display the DOS prompt??? Cheers Marco Antonio On Sun, Oct 19, 2008 at 7:34 PM, Don L [EMAIL PROTECTED] wrote: I don't understand why the following code, won't bring up a 'window' of 'DOS' command prompt on my server/local box. OS=Windows XP; CF version=CF8 Standard (licensed copy). cfexecute name = C:\Windows\System32\cmd.exe /cfexecute No error code, no security issue. I also try the notepad.exe with same outcome. What's the expected result for CFEXECUTE (last time I used it probably years ago...). Thanks. Chunshen Li (Don) ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314161 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: CFexecute Tag
Don, May be inserting a timeout parameter could be display the DOS prompt??? Cheers Marco Antonio Marco, interesting idea, tried it, now I'm getting some 'meaningful' debugging info, Timeout period expired without completion of C:\Windows\system32\cmd.exe I've set Timeout to 3 and 6 respectively with same problem. Dave, the Allow interactive with desktop is only applicable to Local System account while I now set CF8 Server to use an XP user account for log on, hence, can't use it unless there's some manual approach, have you done anything like that for this option? Thanks, guys. Don ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314167 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: CFexecute Tag
Dave, the Allow interactive with desktop is only applicable to Local System account while I now set CF8 Server to use an XP user account for log on, hence, can't use it unless there's some manual approach, have you done anything like that for this option? You can set CF to run as SYSTEM again. I don't know any other way to have CF interact with the desktop. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314172 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfexecute, Windows 2003 and runas
I believe there are 6 items in the mmc you need to give that user, including run as service. If I remember right, one was the batch process one. Lemme go see if I can dig up the MS KB article. We have to do this all the time, and it ends up being a pain! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312939 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfexecute, Windows 2003 and runas
Are you referring to 812614? Jochem - What would be interesting to see is why the batch file is in a hang condition. You can inspect the condition of the process by getting a hang dump of the process and examine it's callstack (I assume there's only one thread). Follow these steps and provide a place for me to download the dump from, I'll look at it if you like: 1) Download, install, and launch the DebugDiag v1.1 tool. You can get it from the Microsoft website 2) Launch your CFM template that creates the batch process 3) On the processes tab, find the batch process, right click on Create Full Userdump 4) Zip it up and put it on an FTP or web site and tell me how to get it. - Matt Small I believe there are 6 items in the mmc you need to give that user, including run as service. If I remember right, one was the batch process one. Lemme go see if I can dig up the MS KB article. We have to do this all the time, and it ends up being a pain! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312941 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cfexecute, Windows 2003 and runas
I have a CF template that uses cfexecute to start a batch file named bootstrap.bat. bootstrap.bat runs under the same account as CF, mediumpriv. At the end of bootstrap.bat I have a runas command: runas /user:lowpriv /savecred D:\lowpriv\run.bat %RunName% Maybe you need to specify the path to runas? C:\windows\system32\runas.exe That's the only thing I can think of offhand. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312943 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfexecute, Windows 2003 and runas
yeah 812614 lays out the IIS permissions for the box. We also had to apply some of these to a custom user running CF 8.x in order to get some things working right http://support.microsoft.com/kb/812614/en-us ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312947 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfexecute, Windows 2003 and runas
Matthew Small wrote: Are you referring to 812614? IIS permissions are probably not very relevant when the system runs Apache, not IIS, and shows the same behaviour through the builtin webserver. Jochem - What would be interesting to see is why the batch file is in a hang condition. That is the $64k question. My best guess is that I need something like 'Interact with Desktop' so the cmd.exe under the lowpriv account can do something with its stderr and stdout. But 'Interact with Desktop' is only available for services under the Local System account, not under the mediumpriv account. 1) Download, install, and launch the DebugDiag v1.1 tool. You can get it from the Microsoft website I'm working on getting more tooling available on the server. Jochem ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312950 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfexecute, Windows 2003 and runas
Dave Watts wrote: I have a CF template that uses cfexecute to start a batch file named bootstrap.bat. bootstrap.bat runs under the same account as CF, mediumpriv. At the end of bootstrap.bat I have a runas command: runas /user:lowpriv /savecred D:\lowpriv\run.bat %RunName% Maybe you need to specify the path to runas? C:\windows\system32\runas.exe No, the process gets started under the lowpriv account just as it should, it just doesn't do anything anymore. Jochem ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312951 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfexecute, Windows 2003 and runas
You said the command works fine when you run it as your user then fire the runas right? Is your user a local/domain admin? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312952 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfexecute, Windows 2003 and runas
Dana Kowalski wrote: You said the command works fine when you run it as your user then fire the runas right? Is your user a local/domain admin? The command runs fine when I: - log on to Windows as the mediumpriv user; - start cf using jrun -config instance1.config -start instance1 - call the CF template with the cfexecute command. The command does not run when I: - start instance1 as a Windows Service under the mediumpriv account; - call the CF template with the cfexecute command. The mediumpriv user is a regular user that is a member of the Users group and has the 'Log on as a Service' privilege. Jochem ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312954 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfexecute, Windows 2003 and runas
I know this exact issue has been a problem since CF 6.x. I've always thought it was a permissions problem, but to be honest I've never used cfexecute. We're just not allowed to =\ Is your CF install running as local system? If it's running as a specific user, you could try making the user starting the service a local/domain admin and see quick if it runs then. Obviously if it does, CF is lacking a permission to run it correctly. If you browse livedocs you'll see your exact issue wa back in 6.1 http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p25.htm There are a couple workarounds those people tried with varying success. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312958 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfexecute, Windows 2003 and runas
You also might want to run Process Monitor on the server while executing this and see if it gives you any clue. - Matt Small I know this exact issue has been a problem since CF 6.x. I've always thought it was a permissions problem, but to be honest I've never used cfexecute. We're just not allowed to =\ Is your CF install running as local system? If it's running as a specific user, you could try making the user starting the service a local/domain admin and see quick if it runs then. Obviously if it does, CF is lacking a permission to run it correctly. If you browse livedocs you'll see your exact issue wa back in 6.1 http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p25.htm There are a couple workarounds those people tried with varying success. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312959 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfexecute, Windows 2003 and runas
Dana Kowalski wrote: Is your CF install running as local system? No, it is running as mediumpriv. If it's running as a specific user, you could try making the user starting the service a local/domain admin and see quick if it runs then. It doesn't when I run CF as a service, it does when I run CF interactively. So the same as the mediumpriv account. Jochem ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312986 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfexecute batch file not working
Marcus Goedeker wrote: I have a very simple batch file that i can run fine on its own, but can't seem to get it to work using cfexecute. I used cfexecute a couple years ago and had no problems, but i can't seem to get it to work with this particular batch file. The cfexecute code is very simple...cfexecute name=C:\test.bat outputfile=C:\output.txt/cfexecute Try: cfexecute name=c:\windows\system32\cmd.exe arguments=c:\test.bat outputfile=c:\output.txt / Jochem ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310842 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfexecute batch file not working
Try: cfexecute name=c:\windows\system32\cmd.exe arguments=c:\test.bat outputfile=c:\output.txt / Jochem Thanks for the reply. I tried it and it doesn't work. It doesn't output anything in the file either. Marcus ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310864 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: cfexecute batch file not working
Is CF logged in as a service or a user? -Original Message- From: Marcus Goedeker [mailto:[EMAIL PROTECTED] Sent: 12 August 2008 14:42 To: CF-Talk Subject: Re: cfexecute batch file not working Try: cfexecute name=c:\windows\system32\cmd.exe arguments=c:\test.bat outputfile=c:\output.txt / Jochem Thanks for the reply. I tried it and it doesn't work. It doesn't output anything in the file either. Marcus ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310865 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfexecute batch file not working
I have a very simple batch file Don't forget that the default directory used by the bat file is not the one the bat file resides, but the on from which it is run. In this occurrence, it is the CF directory. Then you may have to set the working directory from inside the bat file itself. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310867 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfexecute batch file not working
Is CF logged in as a service or a user? Thanks for the reply. I tried it and it doesn't work. It doesn't output anything in the file either. Marcus A service. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310868 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfexecute batch file not working
I have a very simple batch file Don't forget that the default directory used by the bat file is not the one the bat file resides, but the on from which it is run. In this occurrence, it is the CF directory. Then you may have to set the working directory from inside the bat file itself. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. If I run the output in the CF directory, it works also, so that doesn't seem to be the issue. Thanks. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310869 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cfexecute batch file not working
Did you try it logged in as Admin? -Original Message- From: Marcus Goedeker [mailto:[EMAIL PROTECTED] Sent: 12 August 2008 15:25 To: CF-Talk Subject: Re: cfexecute batch file not working Is CF logged in as a service or a user? Thanks for the reply. I tried it and it doesn't work. It doesn't output anything in the file either. Marcus A service. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310873 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfexecute batch file not working
Did you try it logged in as Admin? A service. Yes, i am the admin. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310876 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfexecute batch file not working
One thing i have noticed is that the output file has a line break before and after the actual command output. I don't think this would make a difference, but I guess you never know. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310878 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cfexecute batch file not working
Umm, just to be clear, I meant with Coldfusion logged in as Administrator, not sure if it will help but it certainly might. -Original Message- From: Marcus Goedeker [mailto:[EMAIL PROTECTED] Sent: 12 August 2008 16:20 To: CF-Talk Subject: Re: cfexecute batch file not working Did you try it logged in as Admin? A service. Yes, i am the admin. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310880 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfexecute batch file not working
have you tried setting a timeout for the cfexecute ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310900 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfexecute and logparser
As a hunch (I've not used cfexecute) I'd suggest: cfsavecontent variable=querytouseselect * from C:\ColdFusion8\logs\application.log -i:csv/cfsavecontent ie. ditch the logparser command, you have already told cfexecute to execute logparser.exe HTH Dominic 2008/7/2 Matthew Friedman [EMAIL PROTECTED]: I need to be able to parse the application log file and send a team member a list of all error or issues. I have installed the MS logparser application and I am trying to connect to it using the cfexecute. When I run the script from the command promote it works fine and I get the information, but when I try to use the cfexecute it runs the exe file but only the default help information is returned. I believe it has to do with the () in the string, I have tried to use #chr(32)# and double quotes but nothing is working. Anythoughs would be helpful. Here is what I have now. cfoutputcfsavecontent variable=querytouselogparser select * from C:\ColdFusion8\logs\application.log -i:csv/cfsavecontent/cfoutput !--- cfsavecontent variable=querytouselogparser -h -c/cfsavecontent --- cfexecute name = C:\Program Files\Log Parser 2.2\logparser.exe arguments = #querytouse# variable=items timeout = 1 /cfexecute cfoutput#items#cfoutput Matt Friedman ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308492 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfexecute and logparser
Keep in mind I am reading this with only half a brain today .. Here is what I have now. cfoutputcfsavecontent variable=querytouselogparser select * from C:\ColdFusion8\logs\application.log -i:csv/cfsavecontent/cfoutput It looks like you have the .exe (logparser) in the arguments. If that is not a typo, try removing it. I believe it has to do with the () in the string, I have tried to use #chr(32)# and double quotes but nothing is working. Try wrapping the arguments value in single quotes ('). Any change? cfsavecontent variable=querytouse select * from C:\ColdFusion8\logs\application.log -i:csv /cfsavecontent cfexecute name = C:\Program Files\Log Parser 2.2\logparser.exe arguments='#querytouse#' variable=items timeout = 1 ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308493 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfexecute and logparser
ie. ditch the logparser command Yes .. what he said ;-) ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308495 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfexecute - at my wits end!
Do you have quoted values in your arguments? CFEXECUTE won't handle those correctly. However, you can pass an array of arguments (instead of a string), and those should work. Yes! I will check into the array thing. Thanks! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:304282 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfexecute - at my wits end!
Okay, I have taken both of your suggestions. I changed coldfusion to run under my user account. That caused it to be able to launch the sox application successfully, SOMETIMES. I did the array of arguments. That didn't affect anything, but I left it that way. So now my problem is that when it works, sox stays in memory. I even tried going with a batch file, and I get the same result. It is like sox isn't closing and leaving memory like it should be, but if I run it directly from the command line, I don't have that problem. Please help with any other ideas. Thanks, Dave ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:304285 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfexecute - at my wits end!
It is like sox isn't closing and leaving memory like it should be, but if I run it directly from the command line, I don't have that problem. Try Ben Forta's tip of adding /c as an argument. This tells the command interpreter to run and terminate upon completion. I had a similar problem with ffmpeg and using \c solved it for me. http://www.forta.com/blog/index.cfm/2006/7/31/Using-CFEXECUTE-To-Execute-Command-Line-Utilities ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:304287 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfexecute - at my wits end!
Have you got your ColdFusion Service running with a user account? If not, try using the same account that you use to log onto the server with. On Thu, Apr 24, 2008 at 8:54 AM, Dave Phillips [EMAIL PROTECTED] wrote: Hi all, I am trying to combine two wav files from the command prompt using coldfusion and sox (http://sox.sourceforge.net/). I am using cfexecute. I can output my 'name' and 'arguments' attribute for cfexecute to the screen, copy and paste them to the command prompt and the program executes perfectly. However, when I run the cfexecute, the program apparently does not execute. I'm on a windows system, with MX 7. I can't explain why. I've tried using the output variable and I just get an empty text file. Does anyone have any ideas? If you know of any other COM object or library I could use instead, that would be fine too. I'm just needing to combine wave files from within my CF app. Thanks, Dave ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:304120 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfexecute - at my wits end!
Do you have quoted values in your arguments? CFEXECUTE won't handle those correctly. However, you can pass an array of arguments (instead of a string), and those should work. That being said, I usually go to an intermediary shell script (or BAT file) when I have to shell out from CF. That gives me better control over the execution. cheers, barneyb On Wed, Apr 23, 2008 at 5:54 PM, Dave Phillips [EMAIL PROTECTED] wrote: Hi all, I am trying to combine two wav files from the command prompt using coldfusion and sox (http://sox.sourceforge.net/). I am using cfexecute. I can output my 'name' and 'arguments' attribute for cfexecute to the screen, copy and paste them to the command prompt and the program executes perfectly. However, when I run the cfexecute, the program apparently does not execute. I'm on a windows system, with MX 7. I can't explain why. I've tried using the output variable and I just get an empty text file. Does anyone have any ideas? If you know of any other COM object or library I could use instead, that would be fine too. I'm just needing to combine wave files from within my CF app. Thanks, Dave -- Barney Boisvert [EMAIL PROTECTED] http://www.barneyb.com/ Got Gmail? I have 100 invites. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:304121 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cfexecute and dr web or avg - permissions problem
OK, thanks Dave. Presumably the other option is to give CF the correct permissions to run dr web? Will -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: 05 March 2008 03:22 To: CF-Talk Subject: RE: cfexecute and dr web or avg - permissions problem Thanks for the reply Dave. I've not played with runas before, and I'm uncertain as to how to pass the arguments to drweb32w.exe using runas. Any pointers? I think I'd write a batch file to run all this. You'd use CFEXECUTE to invoke CMD.EXE, and pass it everything else as an argument. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Training: Adobe/Google/Paperthin Certified Partners http://training.figleaf.com/ WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers! http://www.webmaniacsconference.com/ ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:300490 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cfexecute and dr web or avg - permissions problem
Presumably the other option is to give CF the correct permissions to run dr web? Yes, that should also work. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Training: Adobe/Google/Paperthin Certified Partners http://training.figleaf.com/ WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers! http://www.webmaniacsconference.com/ ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:300493 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: cfexecute and dr web or avg - permissions problem
So I'm guessing this is a user permissions issue. I can't see an option to run the command line scanner under a specific account in the dr web docs. Use the runas command to run a program as a specific user. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Training: Adobe/Google/Paperthin Certified Partners http://training.figleaf.com/ WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers! http://www.webmaniacsconference.com/ ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:300463 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cfexecute and dr web or avg - permissions problem
Thanks for the reply Dave. I've not played with runas before, and I'm uncertain as to how to pass the arguments to drweb32w.exe using runas. Any pointers? Thanks Will -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: 04 March 2008 21:57 To: CF-Talk Subject: RE: cfexecute and dr web or avg - permissions problem So I'm guessing this is a user permissions issue. I can't see an option to run the command line scanner under a specific account in the dr web docs. Use the runas command to run a program as a specific user. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Training: Adobe/Google/Paperthin Certified Partners http://training.figleaf.com/ WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers! http://www.webmaniacsconference.com/ ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:300467 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cfexecute and dr web or avg - permissions problem
Thanks for the reply Dave. I've not played with runas before, and I'm uncertain as to how to pass the arguments to drweb32w.exe using runas. Any pointers? I think I'd write a batch file to run all this. You'd use CFEXECUTE to invoke CMD.EXE, and pass it everything else as an argument. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Training: Adobe/Google/Paperthin Certified Partners http://training.figleaf.com/ WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers! http://www.webmaniacsconference.com/ ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:300478 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFexecute, batch file calling another batch file
When the first bat file is executed, the default drive/directory are where CF is running, not where the bat file is stored. So you should also set the drive and directory correctly before calling the other bat files. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298703 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFexecute, batch file calling another batch file
Looks to me like when you CD to \Documents and Settings you want to have quotes around the path, otherwise I don't think the CD will work. Other than that, I would suspect that it's calling the bat okay. You might want to have cfexecute save the output from the command to a file while you're testing it. That way any errors will show up in the file it creates. I don't remember offhand what the name of the attribute for the output file path is. -- s. isaac dealey ^ new epoch isn't it time for a change? ph: 503.236.3691 http://onTap.riaforge.org/blog ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298672 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: CFExecute question
Any ideas, I thought cfexecute was supposed to work the same way as the command prompt. It does, more or less. However, what you're trying to do simply won't work. You're using one user account, and your CF server is running under another user account. If I had an account on your computer, and I logged into it using Remote Desktop and ran MAME, you wouldn't see it on your screen. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:297730 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: CFExecute question
Brian, Dave's right but I'm curious. What is it that you are trying to do here? Run mame on the web server? How would that work exactly? A guy goes to your web site and then clicks on a link that launches mame on the web server Ok ... Now what? How does he interact with it? If you are trying to embed the game into a browser window then I don't think you can do that... There is no mame object plugin (like flash or the jvm) ... Is there? -Mark Mark A. Kruger, CFG, MCSE (402) 408-3733 ext 105 www.cfwebtools.com www.coldfusionmuse.com www.necfug.com -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 30, 2008 9:07 AM To: CF-Talk Subject: RE: CFExecute question Any ideas, I thought cfexecute was supposed to work the same way as the command prompt. It does, more or less. However, what you're trying to do simply won't work. You're using one user account, and your CF server is running under another user account. If I had an account on your computer, and I logged into it using Remote Desktop and ran MAME, you wouldn't see it on your screen. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:297735 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFExecute question
I use the cfexecute tag to load the NES emulator and the Sega Genesis emulator in the exact same fashion, wouldn't that give me the same restrictions then? Thanks. Any ideas, I thought cfexecute was supposed to work the same way as the command prompt. It does, more or less. However, what you're trying to do simply won't work. You're using one user account, and your CF server is running under another user account. If I had an account on your computer, and I logged into it using Remote Desktop and ran MAME, you wouldn't see it on your screen. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:297736 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: CFExecute question
Actually I installed CF server as a localhost on an old machine and use it as a frontend for NES, genesis, TG16, gb, and now trying mame. All the games are in a table that loads per system and when the game is clicked it launches the emulator on the local machine. It isn't used over the web. Since I like to use the web also through the same local page, I can play games, listen to music, and check my e-mail all from a single coldFusion page. With a few tweaks to windows, it actually has the appearance that there isn't an operating system, just my IE page that has my five or six options. Great for parties BTW. Just can't figure out why mame won't load. I have given CF server admin priviledges across the board. Brian, Dave's right but I'm curious. What is it that you are trying to do here? Run mame on the web server? How would that work exactly? A guy goes to your web site and then clicks on a link that launches mame on the web server Ok ... Now what? How does he interact with it? If you are trying to embed the game into a browser window then I don't think you can do that... There is no mame object plugin (like flash or the jvm) ... Is there? -Mark Mark A. Kruger, CFG, MCSE (402) 408-3733 ext 105 www.cfwebtools.com www.coldfusionmuse.com www.necfug.com Any ideas, I thought cfexecute was supposed to work the same way as the command prompt. It does, more or less. However, what you're trying to do simply won't work. You're using one user account, and your CF server is running under another user account. If I had an account on your computer, and I logged into it using Remote Desktop and ran MAME, you wouldn't see it on your screen. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:297739 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CFExecute question
Actually I installed CF server as a localhost on an old machine and use it as a frontend for NES, genesis, TG16, gb, and now trying mame. All the games are in a table that loads per system and when the game is clicked it launches the emulator on the local machine. It isn't used over the web. Since I like to use the web also through the same local page, I can play games, listen to music, and check my e-mail all from a single coldFusion page. With a few tweaks to windows, it actually has the appearance that there isn't an operating system, just my IE page that has my five or six options. Why not just link to the executables from an HTML page? Great for parties BTW. Just can't figure out why mame won't load. I have given CF server admin priviledges across the board. You might need to explicitly run the command prompt, then use that to run your executable: cmd /c \path\to\mame.exe Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:297741 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cfexecute help.
I mean, I need to get a /c onto the command line somehow. However, I have no experience with batch files, or cfexecute, so I don't know how I could fit a /c onto the same arguments string as the rest of the ffmpeg command. Just putting ffmpeg /c doesn't seem to work, at least not in my limited testing. When you run ffmpeg from the command line yourself, you're actually running two programs, in a manner of speaking. You're running the command processor itself, and that's running ffmpeg for you: cmd /c ffmpeg ... Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295955 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cfexecute ffmpeg
I am working with ffmpeg but it doesn't seem to like the .avi or the ..mp4 I tried...any idea? With the .mp4, it made my computer start beeping...was sorta crazy ;o) Michael Appenzellar Mirame Interactive http://www.mirameinteractive.com 301-663-5672 x6413 -Original Message- From: Russ [mailto:[EMAIL PROTECTED] Sent: Monday, September 10, 2007 11:02 AM To: CF-Talk Subject: RE: cfexecute ffmpeg 0 timeout means don't wait for the thread to finish, correct? It basically spawns the process and keeps processing the page... BTW ffmpeg will only do flash 7 right? I'm looking to do flash8, but the folks at on2 want 5K per year for the conversion engine. That's kind of steep if you ask me. Does anyone know of any more reasonable options? Russ -Original Message- From: Jochem van Dieten [mailto:[EMAIL PROTECTED] Sent: Monday, September 10, 2007 8:20 AM To: CF-Talk Subject: Re: cfexecute ffmpeg Mark Lewis wrote: cfexecute name=directory\ffmpeg.exe arguments = -i directory\testvid2.avi directory\testvid2.flv outputfile=c:\ timeout=0 /cfexecute Why the 0 timeout? Set something reasonable so the conversion has time to process. Jochem ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292947 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Cfexecute and restart of apache...
You don't have a timeout attribute on that tag. Regardless, shutting down the webserver from which you're getting a request result is probably going to lead to strange results. Also, I'd recommend doing a graceful rather than a restart - there's no need to completely shutdown Apache to pick up config changes. On 9/26/07, Douglas Hyde [EMAIL PROTECTED] wrote: I am new to CFEXECUTE. I am trying to use cfexecute to restart apache2.2 on max OSX (unix file structure) when a new virtual host is added or when the aliases are updated within a host (eg, new directories are added that must be aliased). [snip] -- mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ ~| Check out the new features and enhancements in the latest product release - download the What's New PDF now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289487 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Cfexecute and restart of apache...
When I needed to do this, I wrote out a restart request file in a certain directory. Then had a job run from crontab every 1 or 5 minutes or whatever, that if it found a restart request file, it would (as root) restart the webserver, and remove the restart request file. I think you may have problems trying to restart apache using the user apache runs as, but I'm not really sure how OSX compares to Linux on that. -Ryan Douglas Hyde wrote: I am new to CFEXECUTE. I am trying to use cfexecute to restart apache2.2 on max OSX (unix file structure) when a new virtual host is added or when the aliases are updated within a host (eg, new directories are added that must be aliased). Apache doesn't recognize these changes until restart. So I have written code to add the new virtual host/alias settings in the vhosts directory of apache - this is working fine. My challenge is getting cfexecute to restart apache in order to pick up the new configurations. Here is what I have tried: !---now set absolute path to a file on the web server to reboot--- cfset script_path = /Library/Apache2/bin/apachectl !---now set arguments--- cfset script_arguments = restart !---now set absolute path to a file on the web server to act as a log; something like--- cfset script_log = /Library/WebServer/Documents/script_log.txt cfexecute name=#script_path# arguments=#script_arguments# outputfile=#script_log#/cfexecute So, it looks like apache is restarting - the problem I am having is that it tries to spit out the file that the cfexecute is contained in, rather than writing to the file in outputfile. I have manually created the script_log.txt in the target directory, and have set permissions to allow the file to be overwritten. But nonetheless, a window pops up asking me to download the file that the cfexecute command is contained in. I have also tried switching from outputfile to variable, and then dumping the variable to a file, but I still have the same problem. To be frank, I really don't need the file, its just a behaviour of cfexecute I need to manage. Any thoughts on why it dumps? I thought of wrapping the cfexecute in cfsavecontent, but don't think I should have to. Cheers, Doug ~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289494 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: CFEXECUTE and PSCP
Not an exact answer to your question, but have you tried logging on interactively as the user CF runs as? I think from my memory that the first time pscp runs it sets up a key for your user profile. Assuming that your machine is running some flavor of windows. Terrence Ryan I.T. Director Wharton Computing and Information Technology E-mail: [EMAIL PROTECTED] ~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288985 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: CFEXECUTE and PSCP
Not an exact answer to your question, but have you tried logging on interactively as the user CF runs as? I think from my memory that the first time pscp runs it sets up a key for your user profile. Assuming that your machine is running some flavor of windows. Yes, we did do that. We even created a new user and logged into the server with that and ran the batch file to ensure that the echo y | before the command would push the key into pscp to acknowledge the key just in case it was asking. No luck yet. -Justin Scott | GravityFree Network Administrator 1960 Stickney Point Road, Suite 210 Sarasota | FL | 34231 | 800.207.4431 941.927.7674 x115 | f 941.923.5429 www.GravityFree.com ~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289009 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFEXECUTE and PSCP
Justin Scott wrote: Not an exact answer to your question, but have you tried logging on interactively as the user CF runs as? I think from my memory that the first time pscp runs it sets up a key for your user profile. Assuming that your machine is running some flavor of windows. Yes, we did do that. We even created a new user and logged into the server with that and ran the batch file to ensure that the echo y | before the command would push the key into pscp to acknowledge the key just in case it was asking. Not accepting the key is still the most likely cause. Can you see that the key is actually stored in the user profile of the user that CF runs under? Try running pscp from a command line that is opened with the runas command for all combinations of /environment and /profile. Jochem ~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289013 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: CFEXECUTE and PSCP
Not accepting the key is still the most likely cause. Can you see that the key is actually stored in the user profile of the user that CF runs under? Try running pscp from a command line that is opened with the runas command for all combinations of /environment and /profile. The programmer working on this reported that he ended up trying a different SFTP client (WinSCP, which also has a command line tool) and was able to run that with CFEXECUTE without error. Just posting this for the archive in case someone else has the same issue later on. Cheers! -Justin Scott | GravityFree Network Administrator 1960 Stickney Point Road, Suite 210 Sarasota | FL | 34231 | 800.207.4431 941.927.7674 x115 | f 941.923.5429 www.GravityFree.com ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289039 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: cfexecute and perl script CF8
It will have more chance if you add the perl command with whatever options you require name=perl /Library/WebServer/Documents/evmCF2/blastImager/blast_imager-2.pl Regards Dale Fraser http://learncf.com -Original Message- From: Jaysheel Bhavsar [mailto:[EMAIL PROTECTED] Sent: Thursday, 13 September 2007 9:10 AM To: CF-Talk Subject: cfexecute and perl script CF8 Hey guys, I am try to execute a perl scirpt within CF8 but I doesn't seem to work. I tired to execute it the same way before in the previous version of CF but even then I wasn't successful. Here is that my cf page looks like. (its a test page so has nothing else on it except for the cfexecute tag.) cfexecute arguments=/Library/WebServer/Documents/evmCF2/blastImager/WIS_ML1_017_H07_n t.txt name=/Library/WebServer/Documents/evmCF2/blastImager/blast_imager-2.pl / This perl script does work. If I run it on command line it create a temp.jpeg file which has the correct Image. Right now its does nothing. When this page is executed I get no errors, and no file is produced. I have been working on this for 2 days now without any success please help. Thank you ~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288327 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfexecute ffmpeg
Mark Lewis wrote: cfexecute name=directory\ffmpeg.exe arguments = -i directory\testvid2.avi directory\testvid2.flv outputfile=c:\ timeout=0 /cfexecute Why the 0 timeout? Set something reasonable so the conversion has time to process. Jochem ~| Check out the new features and enhancements in the latest product release - download the What's New PDF now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288082 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfexecute ffmpeg
Jochem, You are right, but I was setting the timeout for periods up to 20minutes, and the process was crashing. I seem to have found a temporary fix to this problem by running the cfexecute twice? Odd as it sounds, it does the trick. If you could think of a less shoddy fix to this problem or perhaps a reason as to why this problem is happening I would greatly appreciate it. Thank you all again for your help Mark - Original Message - cfexecute name=directory\ffmpeg.exe arguments = -i directory\testvid2.avi directory\testvid2.flv outputfile=c:\ timeout=0 /cfexecute Why the 0 timeout? Set something reasonable so the conversion has time to process. Jochem ~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288083 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cfexecute ffmpeg
0 timeout means don't wait for the thread to finish, correct? It basically spawns the process and keeps processing the page... BTW ffmpeg will only do flash 7 right? I'm looking to do flash8, but the folks at on2 want 5K per year for the conversion engine. That's kind of steep if you ask me. Does anyone know of any more reasonable options? Russ -Original Message- From: Jochem van Dieten [mailto:[EMAIL PROTECTED] Sent: Monday, September 10, 2007 8:20 AM To: CF-Talk Subject: Re: cfexecute ffmpeg Mark Lewis wrote: cfexecute name=directory\ffmpeg.exe arguments = -i directory\testvid2.avi directory\testvid2.flv outputfile=c:\ timeout=0 /cfexecute Why the 0 timeout? Set something reasonable so the conversion has time to process. Jochem ~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288086 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfexecute ffmpeg
When the conversion takes place, the flv file is created, but the flv file is 580kb and doesnt play. It should be 3567kb as it is when i run ffmpeg on the same avi from the command line. When I restart the coldfusion server, all the flv's seem to complete the conversion (the file size goes up to 3567kb and play)...It is very perculiar, any advice would be welcome. Thanks Mark - Original Message - From: Michael E. Carluen [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Wednesday, September 05, 2007 5:31 PM Subject: RE: cfexecute ffmpeg Hi Mark, I am curious as to what doesn't work. I pretty much do the same method as what you're doing. In my experience however, I notice some latency associated with the ffmpeg processing in the background even after cffile and cfexecute completes. As an example, 10meg .avi can take a full minute until it can be viewed completely as a flv. Michael ~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287889 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfexecute ffmpeg
It seems to work when I run the execute twice sometimes?? - Original Message - From: Mark Lewis [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Thursday, September 06, 2007 9:48 AM Subject: Re: cfexecute ffmpeg When the conversion takes place, the flv file is created, but the flv file is 580kb and doesnt play. It should be 3567kb as it is when i run ffmpeg on the same avi from the command line. When I restart the coldfusion server, all the flv's seem to complete the conversion (the file size goes up to 3567kb and play)...It is very perculiar, any advice would be welcome. Thanks Mark ~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287899 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfexecute ffmpeg
We had a similary problem, what we ended up doing was to write a C# wrapper to it, then scheduled a cron job instead of having CF process it. On 05/09/07, Mark Lewis [EMAIL PROTECTED] wrote: Hi Guys, i've been trying to convert .avi videos to .flv using ffmpeg, I have it workng from the command line, however when I try it using cfexecute it only converts a small part of the file and the video doesn't work... the arguments I am using are very basic as follows. cfexecute name=directory\ffmpeg.exe arguments = -i directory\testvid2.avi directory\testvid2.flv outputfile=c:\ timeout=0 /cfexecute Thank You in advance Mark ~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287786 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cfexecute ffmpeg
Hi Mark, I am curious as to what doesn't work. I pretty much do the same method as what you're doing. In my experience however, I notice some latency associated with the ffmpeg processing in the background even after cffile and cfexecute completes. As an example, 10meg .avi can take a full minute until it can be viewed completely as a flv. Michael -Original Message- From: Mark Lewis [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 05, 2007 2:46 AM To: CF-Talk Subject: cfexecute ffmpeg Hi Guys, i've been trying to convert .avi videos to .flv using ffmpeg, I have it workng from the command line, however when I try it using cfexecute it only converts a small part of the file and the video doesn't work... the arguments I am using are very basic as follows. cfexecute name=directory\ffmpeg.exe arguments = -i directory\testvid2.avi directory\testvid2.flv outputfile=c:\ timeout=0 /cfexecute Thank You in advance Mark ~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287820 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfexecute, addHost.sh and deleteHost.sh perhaps?
If you mean how do you find out which subdomain was visited in the request so CF can serve the correct pages, try looking in CGI.http_host. On 5/15/07, Ravi Gehlot [EMAIL PROTECTED] wrote: OK. But how do you append that subdomain name to the URL? -- mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ ~| Macromedia ColdFusion MX7 Upgrade to MX7 experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278242 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfexecute, addHost.sh and deleteHost.sh perhaps?
Hey James, I want to find a way to create subdomains of a domain using ColdFusion. For instance, if I want to create http://james.somedummydomain.com I would enter the subdomain on a form and pass it to a dummy script or API and have it applied. Ravi. James Holmes wrote: If you mean how do you find out which subdomain was visited in the request so CF can serve the correct pages, try looking in CGI.http_host. On 5/15/07, Ravi Gehlot [EMAIL PROTECTED] wrote: OK. But how do you append that subdomain name to the URL? -- --- Ravi Gehlot. Sr. Management Sunshine Technology Solutions, LLC http://www.sunshinetechsolutions.com/ --- ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278243 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfexecute, addHost.sh and deleteHost.sh perhaps?
I followed the thread and Jochem's advice is (as always) spot-on. Just use wildcard DNS at the server level. There is nothing else to create in terms of DNS. Is the club going to be served from a new web account (with physically different pages) or are you using the same set of pages to serve the site (with a different view depending on the subdomain)? On 5/16/07, Ravi Gehlot wrote: Hey James, I want to find a way to create subdomains of a domain using ColdFusion. For instance, if I want to create http://james.somedummydomain.com I would enter the subdomain on a form and pass it to a dummy script or API and have it applied. -- mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ ~| Macromedia ColdFusion MX7 Upgrade to MX7 experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278245 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfexecute, addHost.sh and deleteHost.sh perhaps?
Every subdomain will have its own different page. I understand how to use the wildcard with the DNS but how do I append the subdomain name to the domain? Is there a function in ColdFusion? How is it done? Ravi. James Holmes wrote: I followed the thread and Jochem's advice is (as always) spot-on. Just use wildcard DNS at the server level. There is nothing else to create in terms of DNS. Is the club going to be served from a new web account (with physically different pages) or are you using the same set of pages to serve the site (with a different view depending on the subdomain)? On 5/16/07, Ravi Gehlot wrote: Hey James, I want to find a way to create subdomains of a domain using ColdFusion. For instance, if I want to create http://james.somedummydomain.com I would enter the subdomain on a form and pass it to a dummy script or API and have it applied. -- --- Ravi Gehlot. Sr. Management Sunshine Technology Solutions, LLC http://www.sunshinetechsolutions.com/ --- ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278246 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfexecute, addHost.sh and deleteHost.sh perhaps?
Do you mean how to construct a string from whatever the user types in the form and the base domain name? If the form text input is named txt_clubname: cfset somevariablehere = FORM.txt_clubname .somebasedomain.com On 5/16/07, Ravi Gehlot [EMAIL PROTECTED] wrote: Every subdomain will have its own different page. I understand how to use the wildcard with the DNS but how do I append the subdomain name to the domain? Is there a function in ColdFusion? How is it done? -- mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278247 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfexecute, addHost.sh and deleteHost.sh perhaps?
How do you re-write the URL that shows on the URL Address Bar to contain the new subdomain? Ravi. James Holmes wrote: Do you mean how to construct a string from whatever the user types in the form and the base domain name? If the form text input is named txt_clubname: cfset somevariablehere = FORM.txt_clubname .somebasedomain.com On 5/16/07, Ravi Gehlot [EMAIL PROTECTED] wrote: Every subdomain will have its own different page. I understand how to use the wildcard with the DNS but how do I append the subdomain name to the domain? Is there a function in ColdFusion? How is it done? -- --- Ravi Gehlot. Sr. Management Sunshine Technology Solutions, LLC http://www.sunshinetechsolutions.com/ --- ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 Flex 2 Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278248 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfexecute, addHost.sh and deleteHost.sh perhaps?
Ah. cfset somevariablehere = FORM.txt_clubname .somebasedomain.com !--- some other processing here, to save it to the DB, create the account/pages/vhost/whatever --- cflocation url=#somevariablehere# addtoken=no On 5/16/07, Ravi Gehlot [EMAIL PROTECTED] wrote: How do you re-write the URL that shows on the URL Address Bar to contain the new subdomain? -- mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ ~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278249 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfexecute, addHost.sh and deleteHost.sh perhaps?
Problem SOLVED! Great. Thanks James and Jochem. Ravi. James Holmes wrote: Ah. cfset somevariablehere = FORM.txt_clubname .somebasedomain.com !--- some other processing here, to save it to the DB, create the account/pages/vhost/whatever --- cflocation url=#somevariablehere# addtoken=no On 5/16/07, Ravi Gehlot [EMAIL PROTECTED] wrote: How do you re-write the URL that shows on the URL Address Bar to contain the new subdomain? -- --- Ravi Gehlot. Sr. Management Sunshine Technology Solutions, LLC http://www.sunshinetechsolutions.com/ --- ~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278250 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfexecute, addHost.sh and deleteHost.sh perhaps?
Hey James, The wildcard works just fine. Whatever the subdomain is it maps to the main domain. The problem is how to program this URL to point to a certain directory and ignore Apache's mapping? For example, If I type http://james.thisDomain.com/ Apache maps you to http://www.thisdomain.com/ but this is not the goal here. The goal is to point http://james.thisDomain.com/ to http://www.thisdomain.com/james/ and also to keep the URL as http://james.thisDomain.com/ Any clues? Ravi. James Holmes wrote: I followed the thread and Jochem's advice is (as always) spot-on. Just use wildcard DNS at the server level. There is nothing else to create in terms of DNS. Is the club going to be served from a new web account (with physically different pages) or are you using the same set of pages to serve the site (with a different view depending on the subdomain)? On 5/16/07, Ravi Gehlot wrote: Hey James, I want to find a way to create subdomains of a domain using ColdFusion. For instance, if I want to create http://james.somedummydomain.com I would enter the subdomain on a form and pass it to a dummy script or API and have it applied. -- --- Ravi Gehlot. Sr. Management Sunshine Technology Solutions, LLC http://www.sunshinetechsolutions.com/ --- ~| ColdFusion MX7 and Flex 2 Build sales marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278288 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfexecute, addHost.sh and deleteHost.sh perhaps?
Ravi Gehlot wrote: The wildcard works just fine. Whatever the subdomain is it maps to the main domain. The problem is how to program this URL to point to a certain directory and ignore Apache's mapping? For example, If I type http://james.thisDomain.com/ Apache maps you to http://www.thisdomain.com/ but this is not the goal here. The goal is to point http://james.thisDomain.com/ to http://www.thisdomain.com/james/ and also to keep the URL as http://james.thisDomain.com/ Check out mod_rewrite. Jochem ~| ColdFusion MX7 and Flex 2 Build sales marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278350 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfexecute, addHost.sh and deleteHost.sh perhaps?
Ravi Gehlot wrote: I gotta build an application in ColdFusion capable of executing a BASH Script in Linux to Add and Delete Host names from the DNS Server as well as re-start the server. I thought of using cfexecute for that matter and then write the BASH Script in Linux but I am not a bash script programmer. Is there an easier way of getting this done? Depends. What native API's does your DNS server offer for management? Jochem ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278168 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfexecute, addHost.sh and deleteHost.sh perhaps?
Hey Jochem, I have thought about using APIs also. My servers run on Linux Fedora and for the DNS Server I got named (BIND) and for the web server I got Apache (httpd). Can you find out what the APIs are? I don't mean to give you a little task here but a search on google didn't return any interesting options. Ravi. Jochem van Dieten wrote: Ravi Gehlot wrote: I gotta build an application in ColdFusion capable of executing a BASH Script in Linux to Add and Delete Host names from the DNS Server as well as re-start the server. I thought of using cfexecute for that matter and then write the BASH Script in Linux but I am not a bash script programmer. Is there an easier way of getting this done? Depends. What native API's does your DNS server offer for management? Jochem ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 Flex 2 Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278169 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfexecute, addHost.sh and deleteHost.sh perhaps?
Ravi Gehlot wrote: I have thought about using APIs also. My servers run on Linux Fedora and for the DNS Server I got named (BIND) and for the web server I got Apache (httpd). Can you find out what the APIs are? Last time I did that the options where to can either write the config files out and force Bind to read them or call nsupdate (probably your bash script is just an nsupdate wrapper). Jochem ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 Flex 2 Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278181 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfexecute, addHost.sh and deleteHost.sh perhaps?
Write the config files out? How? How did you force bind to read and how did u call nsupdate? Jochem van Dieten wrote: Ravi Gehlot wrote: I have thought about using APIs also. My servers run on Linux Fedora and for the DNS Server I got named (BIND) and for the web server I got Apache (httpd). Can you find out what the APIs are? Last time I did that the options where to can either write the config files out and force Bind to read them or call nsupdate (probably your bash script is just an nsupdate wrapper). Jochem ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 Flex 2 Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278185 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfexecute, addHost.sh and deleteHost.sh perhaps?
Ravi Gehlot wrote: Write the config files out? How? Config files were generated from information in a database and written to the filesystem with a PHP script. How did you force bind to read kill -HUP named did u call nsupdate? Through the PHP equivalent of cfexecute. Jochem ~| ColdFusion MX7 by Adobe® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278187 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfexecute, addHost.sh and deleteHost.sh perhaps?
Do you still have this script? If so please send it over to [EMAIL PROTECTED] Ravi. Jochem van Dieten wrote: Ravi Gehlot wrote: Write the config files out? How? Config files were generated from information in a database and written to the filesystem with a PHP script. How did you force bind to read kill -HUP named did u call nsupdate? Through the PHP equivalent of cfexecute. Jochem ~| Macromedia ColdFusion MX7 Upgrade to MX7 experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278188 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfexecute, addHost.sh and deleteHost.sh perhaps?
Ravi Gehlot wrote: Do you still have this script? It is not just a script, it is a highly specific DNS + DHCP management solution tied to RADIUS authentication for a small ISP and unless you are doing the first eduroam deployment in the US ever you are not going to need 99% of it. I have cleaned up the fragment that does an actual nsupdate call and attached it below, but if you want more you need to be specific in what you want. Jochem All code: Copyright OnLine Internet, 2004 License: BSD, http://www.opensource.org/licenses/bsd-license.php Library function that does the actual nsupdate call: /*- * * function nsupdate($command, $server=localhost) * Pushes the command to the DNS server * * Parameter * string $command * the nsupdate command to execute * string $server * the server to send the update to, default localhost * * Return value * number $error - * 0 for success * 1 for error *- */ function nsupdate($command, $server=localhost) { // Verify $command is valid nsupdate command if (!eregi('^update (add|delete) [^ ]+ .+$', $command)) { logError(Invalid nsupdate command string supplied: . $command); return 1; } $nscommand = server . $server . \n; $nscommand .= $command . \n; $nscommand .= \n; $nscommand .= quit\n; $filename = '/tmp/' . md5(uniqid()); file_put_contents($filename, $nscommand); echo pre; readfile($filename); echo /pre; $last_line = system('/usr/local/bin/nsupdate ' . $filename, $retval); unlink($filename); if ($retval) { logError(nsupdate error, string supplied: . $command); } return $retval; } Action page that accepts a form post, validates it and calls the nsupdate library: if (isset($_POST[Add])) { // Format the input if ($type == 'A' || $type == '' || $type == 'CNAME' || $type == 'MX') { $_POST['name'] = eregi_replace('(.*)\.', '\1', $_POST['name']); } if ($type == 'CNAME') { $_POST['value'] = eregi_replace('(.*)\.', '\1', $_POST['value']);; } $command .= update add . $_POST['name'] . 86400 . $type . . $_POST['value']; // Run the update $error = nsupdate($command); // Check the result if ($error) { die(nsupdate failed, rollback.); } print('Record added.br /a href=index.phpBack/a'); exit; } ~| ColdFusion MX7 and Flex 2 Build sales marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278204 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfexecute, addHost.sh and deleteHost.sh perhaps?
I was requested by the client to design something like www.clubexpress.com. When you register with Club Express you are given an URL after your Club's short name. So for instance if you Club name is Jochem then you would be given an URL like http://jochem.clubexpress.com/ with your default Club's page and login screen. This is exactly what I need to do with ColdFusion. When an user register its club an url for that newly created club is created. That's the functionality I need and nothing else. Ravi. Jochem van Dieten wrote: Ravi Gehlot wrote: Do you still have this script? It is not just a script, it is a highly specific DNS + DHCP management solution tied to RADIUS authentication for a small ISP and unless you are doing the first eduroam deployment in the US ever you are not going to need 99% of it. I have cleaned up the fragment that does an actual nsupdate call and attached it below, but if you want more you need to be specific in what you want. Jochem All code: Copyright OnLine Internet, 2004 License: BSD, http://www.opensource.org/licenses/bsd-license.php Library function that does the actual nsupdate call: /*- * * function nsupdate($command, $server=localhost) * Pushes the command to the DNS server * * Parameter * string $command * the nsupdate command to execute * string $server * the server to send the update to, default localhost * * Return value * number $error - * 0 for success * 1 for error *- */ function nsupdate($command, $server=localhost) { // Verify $command is valid nsupdate command if (!eregi('^update (add|delete) [^ ]+ .+$', $command)) { logError(Invalid nsupdate command string supplied: . $command); return 1; } $nscommand = server . $server . \n; $nscommand .= $command . \n; $nscommand .= \n; $nscommand .= quit\n; $filename = '/tmp/' . md5(uniqid()); file_put_contents($filename, $nscommand); echo pre; readfile($filename); echo /pre; $last_line = system('/usr/local/bin/nsupdate ' . $filename, $retval); unlink($filename); if ($retval) { logError(nsupdate error, string supplied: . $command); } return $retval; } Action page that accepts a form post, validates it and calls the nsupdate library: if (isset($_POST[Add])) { // Format the input if ($type == 'A' || $type == '' || $type == 'CNAME' || $type == 'MX') { $_POST['name'] = eregi_replace('(.*)\.', '\1', $_POST['name']); } if ($type == 'CNAME') { $_POST['value'] = eregi_replace('(.*)\.', '\1', $_POST['value']);; } $command .= update add . $_POST['name'] . 86400 . $type . . $_POST['value']; // Run the update $error = nsupdate($command); // Check the result if ($error) { die(nsupdate failed, rollback.); } print('Record added.br /a href=index.phpBack/a'); exit; } ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 Flex 2 Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278217 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfexecute, addHost.sh and deleteHost.sh perhaps?
Ravi Gehlot wrote: I was requested by the client to design something like www.clubexpress.com. When you register with Club Express you are given an URL after your Club's short name. So for instance if you Club name is Jochem then you would be given an URL like http://jochem.clubexpress.com/ with your default Club's page and login screen. This is exactly what I need to do with ColdFusion. When an user register its club an url for that newly created club is created. That's the functionality I need and nothing else. But for that you don't need to change DNS on the fly. You only need to change it once: create a wildcard record in DNS (*.clubexpress.com) and point it to the IP address of your webserver and you are done. Jochem ~| Macromedia ColdFusion MX7 Upgrade to MX7 experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278218 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfexecute, addHost.sh and deleteHost.sh perhaps?
Got it. So the subdomain naming would be possible by changing the URL name using ColdFusion? Ravi. Jochem van Dieten wrote: Ravi Gehlot wrote: I was requested by the client to design something like www.clubexpress.com. When you register with Club Express you are given an URL after your Club's short name. So for instance if you Club name is Jochem then you would be given an URL like http://jochem.clubexpress.com/ with your default Club's page and login screen. This is exactly what I need to do with ColdFusion. When an user register its club an url for that newly created club is created. That's the functionality I need and nothing else. But for that you don't need to change DNS on the fly. You only need to change it once: create a wildcard record in DNS (*.clubexpress.com) and point it to the IP address of your webserver and you are done. Jochem ~| Create Web Applications With ColdFusion MX7 Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278219 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfexecute, addHost.sh and deleteHost.sh perhaps?
Ravi Gehlot wrote: Got it. So the subdomain naming would be possible by changing the URL name using ColdFusion? Anything in the address bar of the browser will work. Take for instance Slashdot: their standard URL is http://slashdot.org/, but they have a wildcard set up in DNS and the webserver and they will also respond to: http://coldfusion.slashdot.org/ http://iamawildcard.slashdot.org/ http://zjbfljfdgbdmsdfgdsgsgs.slashdot.org/ Jochem ~| Macromedia ColdFusion MX7 Upgrade to MX7 experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278222 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfexecute, addHost.sh and deleteHost.sh perhaps?
OK. But how do you append that subdomain name to the URL? Ravi. Jochem van Dieten wrote: Ravi Gehlot wrote: Got it. So the subdomain naming would be possible by changing the URL name using ColdFusion? Anything in the address bar of the browser will work. Take for instance Slashdot: their standard URL is http://slashdot.org/, but they have a wildcard set up in DNS and the webserver and they will also respond to: http://coldfusion.slashdot.org/ http://iamawildcard.slashdot.org/ http://zjbfljfdgbdmsdfgdsgsgs.slashdot.org/ Jochem ~| Macromedia ColdFusion MX7 Upgrade to MX7 experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278224 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: CFExecute hanging
To answer my own question... The problem is with mencoder using both stdout and stderr for output. CF only listens on one, so mencoder can't send some of its output anywhere, and hangs. The solution it to redirect the stderr output to stdout. This is my line from the batch file: mencoder %1 -o %2 -of lavf -oac mp3lame -lameopts br=32 -af lavcresample=22050 -srate 22050 -ovc lavc -lavcopts vcodec=flv:vbitrate=340:autoaspect:mbd=2:trell:v4mv -vf scale=%3:%4 -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames convertmov2flvoutput.txt 21 Notice the 21 at the end? That's the puppy... Pipe outout2 (stderr) to output1 (stdout). Hope this helps someone... ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268240 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cfexecute calling *.js wsh
I have a JS file that runs under WSH, but it does not seem to be running as it should. I'm not getting any errors, so its a good sign that something is happening... I'm calling it like this... cfexecute name=C:\WINDOWS\System32\CScript.exe arguments=C:\Inetpub\wwwroot\mysite\NEAT.js outputfile=runtest.txt / How do you know it's not working? I don't know what exactly your script is doing, but from reading your CFEXECUTE tag I would have no idea where I'd expect runtest.txt to be. You might want to fully qualify the path to that file. On an unrelated note, you should probably put your script somewhere other than your web root, since it doesn't need to be accessible via a web browser. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261621 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfexecute problem...
Of course if I stop the CF service I can delete the files mannually. Ok if I run mannually oracle) don't release the file handler. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251819 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfexecute problem...
Ok if I run mannually What happens if you run this same command from the command line manually, outside of CF, does anything weird happen? .. Ben Nadel Web Developer Nylon Technology 350 7th Avenue Floor 10 New York, NY 10001 212.691.1134 x 14 212.691.3477 fax www.nylontechnology.com Some people call me the space cowboy. Some people call me the gangster of love. -Original Message- From: Gabriel Bulfon [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 3:03 PM To: CF-Talk Subject: Re: cfexecute problem... I don't know why, but the cfexecute or a command that i run (exp, from oracle) don't release the file handler. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251065 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CFexecute in onSessionEnd.
This might be a dumb thing but doen't you have to pass in the session to onSessionEnd? cffunction name=onSessionEnd returnType=void cfargument name=SessionScope required=True/ cfargument name=ApplicationScope required=False/ It might be causing an error which wouldn't get thrown to anything. Terrence Ryan Senior Systems Programmer Wharton Computing and Information Technology E-mail: [EMAIL PROTECTED] -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Friday, August 25, 2006 5:37 PM To: CF-Talk Subject: CFexecute in onSessionEnd. Any reason this code would not work in an onSessionEnd function, but a similar one works just fine in an onApplicationStart function of an Application.cfc file. cffunction name=onSessionEnd cfexecute name=C:\WINNT\system32\net.exe arguments=send iskinner session ended./ /cffunction ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251088 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: CFexecute in onSessionEnd.
This might be a dumb thing but doen't you have to pass in the session to onSessionEnd? cffunction name=onSessionEnd returnType=void cfargument name=SessionScope required=True/ cfargument name=ApplicationScope required=False/ It might be causing an error which wouldn't get thrown to anything. Nope, that is not the issue. You only need to pass the scopes to the function if you want to read values from them. If you don't care, as I currently don't, you do not need to pass in the scope. I've further tested this. It works when the session times out. But even though I have J2EE sessions enabled, the onSessionEnd does not fire when the browser is closed. It does fire sometime later when the session times out, even though the browser has been closed. This seems to be counter this passage of the documentation. quote src=CFML Reference - Application CFC Reference - onSessionEnd A session ends when the session is inactive for the session time-out period or, if using J2EE sessions, the user closes the browser. /quote -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA - | 1 | | - Binary Soduko | | | - C code. C code run. Run code run. Please! - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251090 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4