Commandline ISO-Media Compare?

Anyone know of a decent commandline software preferably open source or freeware that allows the comaparison of a CD/DVD with a source ISO image (something that could be automated)? It must be runnable/compileable on a *UX machine.

Thanks!