Is there a way to get the response from a system.util.execute command? I have a gateway script that exports data to a file, then uses an AWS CLI command to copy the file to an AWS server. Is there a way to record the response to that command (stdout)? When executing the command in a command window, I get a confirmation that it copied, or an error if it didn’t. Is there a way to get that response?
No, you’ll have to use Jython or Java standard library calls instead.
https://docs.python.org/2/library/subprocess.html#module-subprocess
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Process.html
2 Likes