将ASP脚本作为计划作业运行 [英] Run ASP Script as Scheduled Job

查看:69
本文介绍了将ASP脚本作为计划作业运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我想执行一个简单的任务,即按照预定的

工作运行ASP脚本。

以前我总是通过Windows Scheduler运行.vbs脚本,或者

在我的global.asa中添加一些逻辑,两者都运行良好。


不幸的是有技术原因(这里太复杂了)

这意味着我不能使用global.asa或独立的vbs脚本来获取

这份工作。它确实必须是在

应用程序空间中运行的.asp脚本。


运行运行命令的预定作业explorer

http://www.mydomain.com/myscript.asp"做这个工作,但每天都会打开一个新的

窗口,这会在坐在远程

服务器上时造成问题。 (脚本末尾的self.close()只给出了app尝试

关闭窗口消息并让窗口打开)


谁有任何关于如何在W2K服务器上实现这一点的建议?


某种打开IE,运行脚本,通过VBS关闭IE可能吗?


任何帮助非常感谢,


问候,

拉里。

解决方案






我建议lynx for win32:
http://lynx.isc.org/release/

或Wget:
< a rel =nofollowhref =http://www.gnu.org/software/wget/wget.htmltarget =_ blank> http://www.gnu.org/software/wget/wget.html


两者都是可编写脚本的(.bat文件)。


Wget允许你POST数据,加载精确

cookies,...


祝您有愉快的一天


Maxime Ducharm e $>
Programmeur /Spécialistensécuritéréseau

" Larry Neylon" < LN ***** @ nospam.ntlworld.com>在消息中写道

news:vU *************** @ newsfe5-win.ntli.net ...

大家好,

我想执行一个简单的任务,即将ASP脚本作为预定的工作运行。

以前我总是运行.vbs脚本通过Windows Scheduler,或者在我的global.asa中添加了一些逻辑,两者都运行良好。

不幸的是有技术原因(太复杂了,不能在这里进入
)这意味着我不能使用global.asa或独立的vbs脚本
来完成这项工作。它确实必须是在
应用程序空间中运行的.asp脚本。

运行运行命令的预定作业explorer
http://www.mydomain的.com / myscript.asp"完成这项工作,但每天都会打开一个新的窗口,当坐在远程服务器上时会出现问题。 (脚本末尾的self.close()只给出了app尝试
关闭窗口的消息,并打开窗口)

有没有人对如何做任何建议在W2K服务器上实现这个

某种打开IE,运行脚本,通过VBS关闭IE可能吗?

任何帮助非常感谢,

>问候,
Larry。



编写一个使用
http://www.aspfaq.com/show.asp?id=2173 检索页面。然后安排

.vbs脚本。


-

Mark Schupp

开发负责人

诚信在线学习
www.ielearning.com

" Larry Neylon" < LN ***** @ nospam.ntlworld.com>在消息中写道

news:vU *************** @ newsfe5-win.ntli.net ...

大家好,

我想执行一个简单的任务,即将ASP脚本作为预定的工作运行。

以前我总是运行.vbs脚本通过Windows Scheduler,或者在我的global.asa中添加了一些逻辑,两者都运行良好。

不幸的是有技术原因(太复杂了,不能在这里进入
)这意味着我不能使用global.asa或独立的vbs脚本
来完成这项工作。它确实必须是在
应用程序空间中运行的.asp脚本。

运行运行命令的预定作业explorer
http://www.mydomain的.com / myscript.asp"完成这项工作,但每天都会打开一个新的窗口,当坐在远程服务器上时会出现问题。 (脚本末尾的self.close()只给出了app尝试
关闭窗口的消息,并打开窗口)

有没有人对如何做任何建议在W2K服务器上实现这个

某种打开IE,运行脚本,通过VBS关闭IE可能吗?

任何帮助非常感谢,

>问候,
拉里。



2004年9月7日星期二20:31:23 GMT,Larry Neylon

< ln ***** @ nospam.ntlworld.com>写道:

我想执行一个简单的任务,即将ASP脚本作为预定的工作运行。




请参阅:


如何安排ASP文件?
http://www.aspfaq.com/show.asp?id=2143


Jeff


Hi All,

I want to perform the simple task of running an ASP script as a scheduled
job.

Previously I''ve always either run a .vbs script via windows Scheduler, or
put some logic in my global.asa, both of which have worked fine.

Unfortunately there are technical reasons (too complicated to go into here)
which mean I can''t use either the global.asa or a standalone vbs script for
this job. It really does have to be an .asp script running in the
application space.

Running a scheduled job that runs the command "explorer
http://www.mydomain.com/myscript.asp" does the job, but will leave a new
window open every day, which will cause problems when sat on a remote
server. (self.close() at the end of the script just gives the "app trying
to close window" message and leaves window open)

Does anyone have any suggestions as to how to achieve this on a W2K server ?

Some kind of opening IE, running script, closing IE via VBS maybe ?

Any help much appreciated,

Regards,
Larry.

解决方案


Hi

I suggest lynx for win32 :
http://lynx.isc.org/release/

or Wget :
http://www.gnu.org/software/wget/wget.html

Both are scriptable (.bat file).

Wget allows you to POST data, load precise
cookies, ...

Have a nice day

Maxime Ducharme
Programmeur / Spécialiste en sécurité réseau

"Larry Neylon" <ln*****@nospam.ntlworld.com> wrote in message
news:vU***************@newsfe5-win.ntli.net...

Hi All,

I want to perform the simple task of running an ASP script as a scheduled
job.

Previously I''ve always either run a .vbs script via windows Scheduler, or
put some logic in my global.asa, both of which have worked fine.

Unfortunately there are technical reasons (too complicated to go into here) which mean I can''t use either the global.asa or a standalone vbs script for this job. It really does have to be an .asp script running in the
application space.

Running a scheduled job that runs the command "explorer
http://www.mydomain.com/myscript.asp" does the job, but will leave a new
window open every day, which will cause problems when sat on a remote
server. (self.close() at the end of the script just gives the "app trying
to close window" message and leaves window open)

Does anyone have any suggestions as to how to achieve this on a W2K server ?
Some kind of opening IE, running script, closing IE via VBS maybe ?

Any help much appreciated,

Regards,
Larry.



write a .vbs script that uses techniques from
http://www.aspfaq.com/show.asp?id=2173 to retrieve the page. Then schedule
the .vbs script.

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Larry Neylon" <ln*****@nospam.ntlworld.com> wrote in message
news:vU***************@newsfe5-win.ntli.net...

Hi All,

I want to perform the simple task of running an ASP script as a scheduled
job.

Previously I''ve always either run a .vbs script via windows Scheduler, or
put some logic in my global.asa, both of which have worked fine.

Unfortunately there are technical reasons (too complicated to go into here) which mean I can''t use either the global.asa or a standalone vbs script for this job. It really does have to be an .asp script running in the
application space.

Running a scheduled job that runs the command "explorer
http://www.mydomain.com/myscript.asp" does the job, but will leave a new
window open every day, which will cause problems when sat on a remote
server. (self.close() at the end of the script just gives the "app trying
to close window" message and leaves window open)

Does anyone have any suggestions as to how to achieve this on a W2K server ?
Some kind of opening IE, running script, closing IE via VBS maybe ?

Any help much appreciated,

Regards,
Larry.



On Tue, 07 Sep 2004 20:31:23 GMT, "Larry Neylon"
<ln*****@nospam.ntlworld.com> wrote:

I want to perform the simple task of running an ASP script as a scheduled
job.



See:

How do I schedule ASP files?
http://www.aspfaq.com/show.asp?id=2143

Jeff


这篇关于将ASP脚本作为计划作业运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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