How to use autocal_asc in a script?
search cancel

How to use autocal_asc in a script?

book

Article ID: 50590

calendar_today

Updated On:

Products

CA Workload Automation AE - Business Agents (AutoSys) CA Workload Automation AE - Scheduler (AutoSys) Workload Automation Agent

Issue/Introduction

autocal_asc is an interactive utility and does not take any argument in the command line. How do you use it in a script for mass modifications like removing a large number of old dates or getting the list of all the calendars.

 

Environment

Release: ATSY1C99000-4.5-AutoSys-Job Management-Class 1 Remote Agent
Component:

Resolution

The solution is to build a shell script using autocal_asc as in the following example:

Example: Get the content of several calendars:

autocal_asc << EOF   
cal1   
p   
EOF   
autocal_asc << EOF   
cal2      
p 
EOF      
autocal_asc << EOF   
cal3   
p   
EOF
...