Montage Tutorial: End-to-End Shell Scripts
Other tutorials work through the details of a specific processing scenario in detail and you shoud refer to this before attempting this one. Here we provide a couple of example shell scripts that run through a complete mosaic example, starting with identifying and retrieving archival (2MASS) input images.
The first (singleband.sh) makes a mosaic of the K-band 2MASS data (212 original images).
The second (color.sh) processes all three bands and creates a color PNG from the three mosaics.