capturing values from system command
Kenneth Brody
kenbrody at spamcop.net
Tue Dec 15 08:21:48 PST 2015
On 12/15/2015 11:14 AM, John Sica via Filepro-list wrote:
> Maybe putenv and getenv.
Child processes can't pass environment variables back to heir parent process.
>
> On 12/15/2015 8: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)
--
Kenneth Brody
More information about the Filepro-list
mailing list