I'm using the data loader from command line to extract all the FeedItems that were created on a particular day, every day.

My question is that how can I utilize the command line to get the Names of the parent object from FeedItem.parentID? I'm thinking that using the command line to do this is not possible. If my assumption is correct, could you guide me toward an automated solution?

Getting the names from IDs is easy using apex code, but having some apex class run on a daily basis and having it export a log file outside of Salesforce is not. In fact, I have not been able to figure out if that is possible at all.

Any guidance would be appreciated.