User bio
404 bio not found
Member since Nov 10, 2023
Replies:

Thank you, Robert. Unfortunately, the sysadmin that hosts the Cache system does not allow NativeAPI to run from Python. It's a healthcare application and they are very particular about allowing outside access to the data or code.

So I have to spawn a process that logs into the Cache application as if it were an interactive user (which is how the pexpect library is used), then run my routine and receive back the output. Is there a way to do this with the pexpect or expect libraries? Or is there another library that will receive any response from a routine call rather than a hard-coded response?

The alternative to this, which I'm trying to avoid, is to have the Cache routine open a file and write its response into the file, then close the file.  Then the Python script would somehow wait for the file to appear, open the file, read the response, then close and delete the file.

Thanks!
Bryan

Certifications & Credly badges:
Bryan has no Certifications & Credly badges yet.
Global Masters badges:
Bryan has no Global Masters badges yet.
Followers:
Bryan has no followers yet.
Following:
Bryan has not followed anybody yet.