oProcess STDOUT

John Boehme john at integralservices.biz
Wed Sep 10 03:25:27 UTC 2025


Hi Xavier,

I'm not a command line guru at all. But from what little I know, some variation on this might work:

Redirect the output of the zip file to a (I believe there is one) command that will text encode it's input, and have the output of that directed to stdout.
The encoding could be uu, or hex, or something else available, and then undo that when you read the stdout in Omnis.


John Boehme
940-597-3046

-----Original Message-----
From: omnisdev-en [mailto:omnisdev-en-bounces at lists.omnis-dev.com] On Behalf Of IT
Sent: Tuesday, September 9, 2025 02:08
To: OmnisDev List - English
Subject: oProcess STDOUT

Hi,

I’m trying to run a shell script that ZIPs a file and returns the result to the STDOUT, so I can get the data in omnis in a binary field without writing to disk and reading again in omnis


Something like

Calculate lvArgument as "/usr/bin/zip -p -q - '/private/tmp/XB_tmp/250909094922274/Order123454.pdf' | cat"

Do ivoProcess.$init(lvArgument)
Do ivoProcess.$run()
Do ivoProcess.$readlines(kOProcessStdout) Returns lvList Quit method lvList

the command executed from macos terminal does what is expected, send to terminal(STDOUT)  the zip file. But in Omnis I have a list with many text(?) lines that seems the zip output.

Is possible to get the oprocess stdout in a binary omnis field?


xavier

_____________________________________________________________
Manage your list subscriptions at https://lists.omnis-dev.com Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 



More information about the omnisdev-en mailing list