Untitled

 avatar
unknown
plain_text
3 months ago
303 B
7
Indexable

grpc_client = GRPCClient()
test_uuid = "XXXXX"
command = "ls -l"

try:
    request = pb2.Message(content=command, group_id=test_uuid)
    response = grpc_client.stub.Submit(request)
    print("gRPC Response:", response.content)
except Exception as e:
    print("Error executing gRPC command:", str(e))
Editor is loading...
Leave a Comment