Michael,
Since you're on a shared server, the CF server is going to treat your
scheduled task just like anyone else's. If you use a consistent
naming convention for your tasks you could do some filtering after the
fact. It's not bullet proof but maybe it'd work for you. Ex:
If you have scheduled tasks in the CF Admin named like so...
mike - task 1
mike - task 2
mike - task 3
Then just modify your code like this
<cfloop index="i" from="1" to="#numberOtasks#">
<cfif Mid(allTasks[i].task, 1, 4) EQ "mike">
<cfoutput>
#allTasks[i].task#<br>
</cfoutput>
</cfif>
</cfloop>
HTH,
Cliff
On 5/5/05, WebStop Internet Services <[EMAIL PROTECTED]> wrote:
> Is there a way to show the scheduled task for a particularly named task?
>
> Say, I name all my tasks "Scheduled Task (variable number)"
>
> How would I display all of the tasks with the name that started with
> the words "Scheduled Task"?
>
> I have this so far, but I am on a shared server and other people's tasks are
> showing up and I only want to display the ones for the application I created
> that names them "Scheduled Task 1, Scheduled Task 2" etc...
>
> Here is what I use to display currently scheduled tasks:
>
> <!--- Code Snippet
>
> You have the following Tasks Scheduled listed by ID Number.<br>
> <cfobject type="JAVA" action="Create" name="factory"
> class="coldfusion.server.ServiceFactory">
> <cfset allTasks = factory.CronService.listAll()> <cfset numberOtasks =
> arraylen(allTasks)>
> <cfloop index="i" from="1" to="#numberOtasks#">
> <cfoutput>
> #allTasks[i].task#<br>
> </cfoutput>
> </cfloop>
> Click a number below to view details of the task.
> <cfdump var="#allTasks#" expand="no">
>
> End Code / --->
>
> How do I discriminate between mine and everyone else's on the server?
>
> Michael Pool
> Lowcountry Computers
> http://www.LowcountryComputers.com
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205805
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54