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