#!/usr/bin/python import sys try: print open('/etc/invirt/vnc/server.crt').read() except IOError, e: sys.exit(e.errno)