Running on the grid is as easy as having a grid certificate and using two command line arguments.
When running locally, we define an input dataset list file and an output directory; for the grid we'll define an input dataset name and an output dataset name (we still define a local output as well).
Then we can process that sample on the grid using the --gridDS argument and --outDS argument. Your --outDS should always start with user.<your user name>