capturing values from system command

Richard D. Williams richard at appgrp.net
Wed Dec 23 06:42:40 PST 2015


Scott,

Instead of using python to parse the XML, just use an import command 
within your filepro program after the original system command is done.
Or export your python script results to a text file and import that.

This is assuming you know the destination file name before you start the 
initial script.

I use curl and simply parse the returned HTML response.

Richard

On 12/15/2015 9: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)
>
> thanks
>
> Scott
> PDM
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20151215/b6b8c1f3/attachment.html>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>
>
>
>



More information about the Filepro-list mailing list