passing a variable in filePro to the OS (SCO v 6) for use with the "system" command
Brian K. White
brian at aljex.com
Sun Oct 10 20:01:47 PDT 2010
On 10/10/2010 8:46 PM, Steve Parker wrote:
> Dear filePro Gurus,
>
> I'm finally getting close to wrapping up the FAX project I've been plugging
> away at for quite some time! I figured out the "pattern" of the extra lines
> that appear after the first FAX (the first FAX always sends successfully)
> and trapped where and how to insert a fix from within filePro.
>
> Now I need to send a value to SCO for use with the "tail" command. This will
> be executed through the filePro "system" command, but so far I have not
> figured out the correct syntax.
>
> I thought the variable to use was @PM -- although it looks like there are
> several no -- but syntax help is sorely lacking. That is, unless I'm either
> on the wrong track or looking in the wrong place! LOL! Entirely possible!
>
> I want to send a numeric value from [FC(2,.0,g)] to Unix so I can execute a
> command that utilizes the value of FC.
>
> I'm sure this is a pretty easy one, just not something I have done in ages
> -- if ever -- so any guidance would be greatly appreciated!
system "myscript" < xx < yy < fc
Where myscript is a script that has your fax commands in it,
and where xx and yy are presumably other data besides fc that you need
to hand to the script like temp filename and phone number, and fc is
this new variable.
In this exact example, assuming there are no spaces in the values of xx
and yy, then inside myscript xx would be $1, yy would be $2 and fc would
be $3.
-r/@pm is for passing a value in to a clerk/report process, not out of it.
--
bkw
More information about the Filepro-list
mailing list