passing a variable in filePro to the OS (SCO v 6) for use
Scott Walker
ScottWalker at RAMSystemsCorp.com
Mon Oct 11 09:26:32 PDT 2010
John,
Do mean putenv NOT putvar?
Regards,
Scott
-----Original Message-----
From:
filepro-list-bounces+scottwalker=ramsystemscorp.com at lists.celestial.com
[mailto:filepro-list-bounces+scottwalker=ramsystemscorp.com at lists.celestial.
com] On Behalf Of John Esak
Sent: Monday, October 11, 2010 11:58 AM
To: sparker at abccompuserve.com
Cc: filepro-list at lists.celestial.com
Subject: RE: passing a variable in filePro to the OS (SCO v 6) for use
The thing you want is
putvar exp,exp
Where the expression on the left is the varname, case is sensitive. The
falue on the right is the value to assign to this varname.
putvar "pages","44"
There is no SYSTEM call needed to exedcute the above command . From the
point in the prc table where it gets executed, any successive SYSTEM call
will use the variable at that value. In fact anywhere else in the table
will use it at that value also.
Putvar is one of the extremely valuable filePro functions.
John Esak
> -----Original Message-----
> From: filepro-list-bounces+john=valar.com at lists.celestial.com
> [mailto:filepro-list-bounces+john=valar.com at lists.celestial.co
> m] On Behalf Of Steve Parker
> Sent: Monday, October 11, 2010 10:49 AM
> To: filepro-list at lists.celestial.com
> Subject: Re: passing a variable in filePro to the OS (SCO v 6) for use
>
>
>
> > 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/attachment
> s/20101011/9b048ee1/attachment.html
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list
_______________________________________________
Filepro-list mailing list
Filepro-list at lists.celestial.com
Subscribe/Unsubscribe/Subscription Changes
http://mailman.celestial.com/mailman/listinfo/filepro-list
More information about the Filepro-list
mailing list