ASP.NET的计划任务 [英] Scheduled tasks for ASP.NET

查看:100
本文介绍了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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆