0
我写了一个批处理文件来打开webrowser,然后关闭它,然后打开另一个并关闭它。打开浏览器后,它会发送电子邮件。当我手动运行批处理它的作品,但是当我使用autosys运行它时,电子邮件从未发送。这里的批处理文件: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: [email protected]
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
很抱歉,如果我在错误的地点问...第一次在这里张贴
Autosys是否使用特殊语法来指定路径中的驱动器号?我的意思是,这个路径是否正确:'D \:\ Application Tracking \ text.bat'?通常情况下,您只需要像'D:\ Application Tracking \ text.bat'(冒号前没有反斜杠)。 –