nightly.pl is a script that iterates over all the collections stored in $GSDLHOME/collect and updates them by calling update.pl. It should be run nightly to keep collections based on mirrors of web sites up to date.