【问题标题】:Read profile variable from batch file and echo in command for autosys windows从批处理文件中读取配置文件变量并在命令中为 autosys windows 回显
【发布时间】:2021-01-13 20:48:12
【问题描述】:

我有如下的 autosys 工作

insert_job: job_name
command: cmd /c path/abc.bat
machine:
owner:
permission: 
std_out_file:
std_err_file:
profile: "profile.bat"

在 profile.bat 文件中我设置了变量

SET name=""
SET mydate=""

如何在调用 bat 命令后从 profile:bat 文件中回显日期

【问题讨论】:

  • 哪个命令,命令中的日期在哪里
  • 在 autosys 命令中我希望日期在特定日期运行批处理文件
  • 您可以将批处理文件中存在的日期保存在一个文件中,然后在 autosys 中读取该文件。
  • 如何读取文件?
  • 我不知道 autosys 但this 可能会帮助你

标签: batch-file autosys


【解决方案1】:

我们需要将配置文件属性的批处理文件存储在同一台远程机器中。

【讨论】:

猜你喜欢
  • 1970-01-01
  • 2011-09-10
  • 2010-09-12
  • 2022-10-21
  • 1970-01-01
  • 1970-01-01
  • 2017-06-11
  • 2020-12-20
  • 2015-08-09
相关资源
最近更新 更多