我写了一个批处理文件来打开一个网络浏览器,然后关闭它,然后打开另一个并关闭它。打开浏览器后,它将发送电子邮件。当我手动运行批处理时它可以工作,但是当我使用 autosys 运行它时,电子邮件永远不会发送。这是批处理文件:
@echo off
start iexplore.exe http://localhost/licensedb/Dev/home.php
ping 123.45.67.89 -n 1 -w 20000 > nul
taskkill /im iexplore.exe
start iexplore.exe http://localhost/licensedb/Dev/send_mail.php
ping 123.45.67.89 -n 1 -w 10000 > nul
taskkill /im iexplore.exe
这是 autosys 命令行:
insert_job: cots_license_tracker job_type: c
command: "D\:\Application Tracking\text.bat"
machine: computer name
owner: serviceautosys@domain
permission:
date_conditions: 1
run_calendar: Bi-weekly_Mondays
start_times: "09:00"
std_out_file: D\:\logs\AutoSys\sys\%AUTO_JOB_NAME%.out
std_err_file: D\:\logs\AutoSys\sys\%AUTO_JOB_NAME%.err
alarm_if_fail: 0
抱歉,如果我问错地方了……第一次在这里发帖