passing a variable in filePro to the OS (SCO v 6) for use
Kenneth Brody
kenbrody at spamcop.net
Mon Oct 11 10:41:35 PDT 2010
On 10/11/2010 10:48 AM, Steve Parker wrote:
[...]
> This is where I had the syntax problem, so I thought that
> passing a variable might work easily enough. Perhaps not!
>
> I tried: system "tail + FC /u/appl/fpmerge/filename > /other filename"
>
> Where FC has a real value from "1" to "35" more or less. FC is the number of
> lines padded to the top of the next record filePro prints, and is the
> difference between "60" and @LC from the prior record. Works great if I put
> in a real value, just not with a variable, such as FC. I'm sure it is
> syntax. Thoughts?
Think of it this way... If you wanted to show the command, rather than
execute it, what would you do? Then, replace "SHOW" with "SYSTEM".
If you want to pass the value of the field FC, rather than the literal "FC",
then you need to tell filePro to do so, by not putting FC in the string literal:
system "tail +" { fc & " /u/appl/fpmerge/filename >/other/filename"
--
Kenneth Brody
More information about the Filepro-list
mailing list