下面是我的autosys吉尔。 当命令作为“ pm2 stop all”传递时,它将失败。没有产生任何错误。任何想法 ?谢谢。
insert_job: STOP_UNIX_AGENTS job_type: CMD
command: pm2 stop all
machine: unix_server1
owner: agents
permission: gx,ge,wx,mx
alarm_if_fail: 1
send_notification: F
std_out_file: "/local/home/agents/log/autosys/$AUTO_JOB_NAME.`date +%d%b%y_%M%S`.out"
std_err_file: "/local/home/agents/log/autosys/$AUTO_JOB_NAME.`date +%d%b%y_%M%S`.err"
profile: /local/home/agents/.bash_profile
max_run_alarm: 2
alarm_if_fail: 1
timezone: US/Eastern
notification_msg: $AUTO_JOB_NAME executed