How to call Python script from C++ code within Gramine #1831
Closed
hello31337
started this conversation in
General
Replies: 1 comment 3 replies
-
@hello31337 Thanks for your question! In your case, the shell (that |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm trying to call a Python script with the system() function from C++ code inside Gramine, after completing Remote Attestation in C++ code like ra-tls-mbedtls.
I tried the following configuration, but 32512 (0x7F00, equivalent to error 127) was returned as the return value of the system function.
I assume this is an error due to not being able to locate python, but is there a good way to call python within Gramine?
I'm using ra-tls-mbedtls as a base and the RA execution and TLS communication itself is successful.
pyret = std::system("./python helloworld.py"); std::cout << pyret << std::endl;
Beta Was this translation helpful? Give feedback.
All reactions