– Common Function Library Project


Last updated February 24, 2005


Qasim Rasheed

Version: 1 | Requires: CF6 | Library: UtilityLib

This function will return a query listing all the scheduled task on a ColdFusion server to which you do not have administrative access. Following are the columns in the returned query disabled,file,http_port,http_proxy_port,interval,operation,password,path,proxy_server,publish,request_time_out,resolveurl,start_date,start_time,task,url,username Additionally if no schduled task exists, it will return an empty query with one column named 'nothing'. Note: Because this function uses some undocumented features, which might not be available in future releases, and Macromedia will not support code that uses these features.

Return Values:
Returns a query.


<cfdump var="#getScheduledTasks()#">


No arguments.

Full UDF Source:

 * This function will return a query listing all the schedule task on a ColdFusion server without admin access.
 * @return Returns a query. 
 * @author Qasim Rasheed ( 
 * @version 1, February 24, 2005 
function getScheduledTasks(){
	var i = "";
	var j = "";
	var retquery = "";
	var alltasks = createobject("java","coldfusion.server.ServiceFactory").getCronService().listall();
	if (arraylen(alltasks )) {
		retquery = querynew(structkeylist(alltasks[1]));
		queryaddrow(retquery, arraylen(alltasks));
		for (i=1; i lte arraylen(alltasks); i = i+1){
			for (j in alltasks[i])
				querysetcell(retquery, j, alltasks[i][j]);
	else retquery = querynew( 'nothing' );
	return retquery;
blog comments powered by Disqus


Latest Additions

Kevin Cotton added
May 5, 2016

Raymond Camden added
April 25, 2016

Chris Wigginton added
January 18, 2016

Gary Stanton added
November 19, 2015

Sebastiaan Naafs - van Dijk added
November 13, 2015

Created by Raymond Camden / Design by Justin Johnson