Executes a CFML developer-specified process on a server computer.
<cfexecute name="">
cfexecute(name="");
0
false
If you want to execute a script (.sh,.cmd,.bat), use bash (linux) or cmd.exe (windows) as the command and the script as argument for the shell interpreter.
cfexecute( name="bash", arguments="/opt/jq.sh #cmdArgs#", variable="standardOut" , errorVariable="errorOut" , timeout="10");
Printing a PDF using lpr
cfexecute(
name="lpr",
arguments="-P 'My Print Job Name' 'C:/Users/devguy/Documents/server/mynewfile.pdf'",
timeout="5",
terminateOnTimeout="true"
);
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.