If you want to render an animation, start a batch render from within the Maya UI. (You can also render a single frame this way.) Advantages include the following:
To start a batch render from within Maya, see Batch render a still or animation.
Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License