&*^%^$#%$*& USER!
Kenneth Brody
kenbrody at bestweb.net
Thu Apr 1 17:02:16 PST 2004
"Brian K. White" wrote:
[...]
> then: user cgc = cgc
> then: cgc = getenv("COMPANY"){","{scanimg_dtyp{","{scanimg_dnum
> then: system "winstart http://"{getenv("SRVIP"){"/cgi-bin/showthm?"{cgc
> then: close cgc ; return
[...]
> two possible work-arounds that I can see are:
> 1) track whether user has ever been opened in a global variable and then
> check the variable at the beginning of the gosub and never close the user
> command.
Why are you closing it in the first place? There is no need, since you
have properly written the script to loop.
> 2) don't track whether user has already been opened, just always open it
> once in @once and never close it.
What do you mean "open it once in @once"?
Unless you have some overriding need to close the pipe which I don't
see, simply remove the "close cgc" from your subroutine.
[...]
--
+---------+----------------------------------+-----------------------------+
| Kenneth | kenbrody at spamcop.net | "The opinions expressed |
| J. | http://www.hvcomputer.com | herein are not necessarily |
| Brody | http://www.fptech.com | those of fP Technologies." |
+---------+----------------------------------+-----------------------------+
More information about the Filepro-list
mailing list