
Environment variables in postscript templates
Quote:
> >Is it possible to "load" shell environment variables into
> >a Postscript file?
> How could that happen? A PostScript printer cannot reach back into
> your computer to find the value of environment variables.
> You should substitute the text in the PostScript file before you
> print. In fact, before you run Enscript for best results.
Aandi,
of course a printer can't do anything like that. Sorry if my
message gave the impression I was trying to do this.
What I meant is: can I modify the PostScript template so
that, when **enscript** loads it, **before** sending anything
to the printer, it loads a string from some shell environment
variable, substitutes it on the fly in the template and goes?
I am pretty good with shell and perl scripting, but a complete
novice with PostScript. I also tried to find an enscript mailing
list, without success.
If you people here in the NG tell me this can't be done, I know
how to "substitute the text in the PostScript file before printing"
from the shell script, and will do it. I was just wondering if the
other way is possible, because it's much more elegant and almost
certainly runs faster.
Thank you again,
Marco Fioretti