How to use autocal_asc in a script?

Document ID : KB000050590
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

autocal_asc is an interactive utility and does not take any argument in 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.

Solution:

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
...