I need a script for simplifying meshes, to run on a server in headless (no GUI) mode. Are there open source (or at least gratis) tools out there I could use for this? Or, how would I script Blender to do this? I'm aware of MeshLab but it's way too unstable, crashes left and right. I can run on Ubuntu or Windows (but would prefer Ubuntu).
I'm working with Collada and Ogre formats. I can incorporate steps for conversions to/from other formats in in the batch script, given conversion tools.