passing a variable in filePro to the OS (SCO v 6) for use
Steve Parker
sparker at abccompuserve.com
Mon Oct 11 07:48:55 PDT 2010
> 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!
>
>
> Thanks!
Steve Parker
ABC Computing Services
------------------------------
> Of course, if you're doing that methodology, why not just concatenate the
> values in question into the command itself and skip any sort of
environment
> variable?
>
> mark->
--
[Steve Parker] 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?
If none on this syntax, then I will try this other approach mentioned. But
just inputting the value through a variable seems so much easier!
system "myscript" < xx < yy < fc
Steve
------------------------------
> 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
[Steve Parker] I have all of the VSIFAX variables working well . at least so
far.
------------------------------
> My thought exactly but yes fp has putenv "VARNAME",fc
> Yes, no (), even though getenv is fc = getenv("VARNAME")
>
> --
> bkw
[Steve Parker] I will look at this as well, thanks!
------------------------------
_______________________________________________
Filepro-list mailing list
Filepro-list at lists.celestial.com
http://mailman.celestial.com/mailman/listinfo/filepro-list
End of Filepro-list Digest, Vol 81, Issue 8
*******************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.celestial.com/pipermail/filepro-list/attachments/20101011/9b048ee1/attachment.html
More information about the Filepro-list
mailing list