Article View: comp.lang.postscript
Article #6029Re: Env Vars
From: Joe Gaudreau (Dances with PostSc...
Date: Fri, 17 May 1991 18:07
Date: Fri, 17 May 1991 18:07
43 lines
1728 bytes
1728 bytes
scairns@citib.com (Scott Cairns) writes:
=We're running SunOS 4.1 with OpenLook 2.0 window manager.
=
=I want to modify the OpenLook init.ps file so that I can
=check the value of an environment variable (in postscript
=language of course) and take appropriate action.
=
=Something along the lines of:
=
=(1) get value of env variable (e.g. LOGO)
=
=(2) if (LOGO == 1)
=
= run some post-script file
=
= else
=
= continue on
=
=Not knowing post-script and not finding any sample post-script
=code in the ~openwin directory that does something like this, I
=was hoping for some suggestions...
Piece of PS (actually NeWS):
(LOGO) getenv 1 eq {%ifelse
(somefilename) run
} if
%continue on...
Is this what you wanted?
Joe
-=-
--
/Joe-Gaudreau {ps-hacker c[++]^2 juggler add add nice-guy mul} bind def
Fone: (508)671-0461
INet: gaudreau@East.Sun.Com
UUCP: sun!suneast!gaudreau
Snail: Sun Microsystems Inc - BDC, 2 Federal St, Billerica, MA 01821
The opinions I juggle may not be mine, but they aren't my employer's either.
Technical Details
Message-ID:
<6214@eastapps.East.Sun.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!pacbell.com!iggy.GW.Vitalink.COM!lll-winken!sun-barr!newstop!eastapps!juggler!gaudreauReferences:
<1991May7.211628.5275@citib.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!pacbell.com!iggy.GW.Vitalink.COM!lll-winken!sun-barr!newstop!eastapps!juggler!gaudreau From: gaudreau@juggler.East.Sun.COM (Joe Gaudreau (Dances with PostScript)) Newsgroups: comp.lang.postscript Subject: Re: Env Vars Message-ID: <6214@eastapps.East.Sun.COM> Date: 17 May 91 18:07:41 GMT References: <1991May7.211628.5275@citib.com> Sender: news@East.Sun.COM Reply-To: gaudreau@east.sun.com (Joe Gaudreau (Dances with PostScript)) Organization: Sun Microsystems Inc. - BDC Lines: 43