capturing values from system command
Kenneth Brody
kenbrody at spamcop.net
Tue Dec 15 08:17:03 PST 2015
On 12/15/2015 10:56 AM, scooter6--- via Filepro-list wrote:
> I'm writing a process that will send out credit card information to our
> merchant provider and have everything pretty much completed....
>
> After a series of data entry fields obviously, the data is captured and
> then I pass along those variables to a shell script that creates the XML,
> sends it to our carrier and I'm using a python script to parse it and then
> shows the result at the bottom of the screen for the person who executed
> the command.....
> Since there really isn't a 'record' created yet, I can't really use the px
> to bring a value back...
> Is there a way to capture the results of my shell script back to the
> processing that created it?
> I know there may be a 'better' way to do all this but don't really have the
> time to start over
> Everything works great except I can't capture the results from the merchant
> side (i.e. authorization code or declined and decline reason)
[...]
Assuming you need more than just the process' exit code -- which you can get
using the SYSTEM() function -- you can either (1) send the output to a text
file and read that file upon return, or (2) use USER.
--
Kenneth Brody
More information about the Filepro-list
mailing list