def close(self): bconsole.close()
def main(): bconsole.set_configfile("/etc/bacula/bconsole.conf") bconsole.connect() print bconsole.execute_command("status dir=linconet-dir") bconsole.close()