HOW TO
Steps to automate the execution of an aml at a specified date and time.
#!/bin/csh
setenv ARCHOME /your_path_to_ARCHOME
setenv LD_LIBRARY_PATH /your_path_to LD_LIBRARY
$ARCHOME/bin/arc '&r /filepath/your.aml' > output.file
Note:
Specifying an output file frees the screen from AML output.
Code:
unix>chmod 777 filename
Code:
unix>crontab -e
Note:
For this to work, you need to define the EDITOR variable either at the system prompt or in your .cshrc file:
setenv EDITOR your_favorite_editor
0 20 * * 2 /your_file_path/runaml.scr
Note:
For additional information, type "man crontab" at the UNIX prompt.
Article ID:000002328
Get help from ArcGIS experts
Download the Esri Support App