HOW TO

Run an aml at a specified date and time on UNIX

Last Published: April 25, 2020

Summary

Steps to automate the execution of an aml at a specified date and time.

Procedure



  1. Create a shell script, name it something like 'runaml.scr', insert and modify the following lines to run your aml:

    #!/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.

  2. Make the shell script executable:

    Code:
    unix>chmod 777 filename

  3. Create a crontab file:

    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 

  4. Insert the date, time, and name of the script file to be executed. The following example executes 'runaml.scr' at 10:00pm every Tuesday:

    0 20 * * 2 /your_file_path/runaml.scr 


    Note:
    For additional information, type "man crontab" at the UNIX prompt.

Article ID:000002328

Software:
  • ArcMap 8 x
  • Legacy Products

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic