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