DS9 will process each command line option, one at a time, as the last step in the initialization process. Therefore, it is possible to use command line options as a little script. For example, the following command line option is used:
$ds9 -tile foo.fits -cmap Heat -zscale bar.fits -cmap I8
First DS9 is put in tile mode, then foo.fits is loaded. Then the colormap for foo.fits is changed to Heat. Next, a new frame is created and bar.fits is loaded. And finally, the colormap for bar.fits is changed to I8.
align array blink blockbuffersize blockfactor blockfunction cmap colorbar coords exit geometry help horzgraph iconify info invert linear ln log magnifier minmax mode mosaicimage mosaicimages mosaicsegment orient panner private regionfile rotate scale scalelims scalemode shared squared sqrt source tile tilemode title vertgraph visual wcs wcsformat z1 zscale zoom