A USER question

Tom Pancero postmaster at cobbinc.com
Thu Apr 21 08:19:09 PDT 2005


Walter,

In my application I had an interface program that I wrote in C
that read from STDIN and wrote to STDOUT. It resided in
/u/ams and was named addr.

In the Filepro table,
Initialize the function so Filepro can communicate.

::user addrmatch=/u/ams/addr:

to SEND data TO the 'addr' program;

::addrmatch =19:

to RECEIVE string(s) from the 'addr' program

(I was expecting more than 1 line of output, so I put all the
return data into an array for later parsing)

...
::addr[l] =addrmatch:
...

These examples came right from a working table that has all the 'other'
stuff removed but it does show the basic structure.

Good Luck!

Tom




Walter Vaughan wrote:

> Kenneth Brody wrote:
>
>> Anything sent from filePro to the USER program is sent to the USER
>> program's stdin, plus a newline. Anything sent by the USER program
>> to its stdout, followed by a newline, can be read by filePro.
>
>
> I sure hope I can make this work...
>
> We're installing facetPhone tomorrow, and one of the goals is to query 
> the facet_phone server to get DNIS (dialed number) digits as well as 
> CID (Caller Identification) data.
>
> The facet_phone server will be running on a freeBSD box, just not the 
> server that we run filePro on.
>
> The facet_phone server has a binary that is called like the following..
> "fp_cid 200" (binary and extension) and it would return to standard 
> output something similar to "<800-325-3535|SHERATON 
> HOTEL|345-453-3434>". All of a sudden I am having a mental block on 
> how to run a USER or SYSTEM command that would execute a binary on a 
> remote machine and read in the std_output on that remote machine.
>
> Surely I am not the first person to integrate filePro and facetPhone. 
> Any hints or tips will probably allow me to sleep tonight.
>
> -- 
> Walter
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>




More information about the Filepro-list mailing list