ASP.NET的计划任务 [英] Scheduled tasks for ASP.NET
本文介绍了ASP.NET的计划任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在Windows的计划任务执行asp.NET code?
How to execute asp.NET code in scheduled task of windows?
推荐答案
我经常用wget的/卷曲从计划任务(甚至从cron在不同的服务器)窗口正是这一点做的。对于某些事情,最好是保持它的所有Web应用程序中。
I've often used wget / curl to do exactly this from windows scheduled tasks (or even from cron on a different server). For certain things it is better to keep it all within the web application.
例如
curl -k https://example.com/update.aspx?id=71077345 -u username:password
或
wget -O - http://example.com/process.php
这篇关于ASP.NET的计划任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文