@classmethod
    def db2cmd(cls, cmd):
        """Wraps a command to be run under the DB2 instance user."""
        subprocess.check_call('su - $(db2ilist) -c "%s"' % cmd, shell=True)
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/tools/db/schema_diff.py/Ibm_db_sa.db2cmd/original