gdark exptimegdark creates the file gdarkN.fits by taking the median of 10 guider images where N is the exposure time in seconds. This file is used by acquire and guide.
Note: this script moves the stage to the far corner (x=y=0) and leaves it there.