LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[OT] postscript programming q (was: Re: [ILUG] unix mail script virus hole long before windows?)

[OT] postscript programming q (was: Re: [ILUG] unix mail script virus hole long before windows?)

kevin lyda kevin at suberic.net
Tue Jul 10 15:10:59 IST 2001


On Tue, Jul 10, 2001 at 03:57:32PM +0200, Foley, Brian (Galway) wrote:
> %!PS
> /f
> 	(~/i_could_have_deleted_all_your_files) (w) file
> def
> 
> f (You've been PostScripted!) writestring
> f closefile

ok, i forgot to close the file, but you forgot to exit the interpreter!
:)  one thing i was trying to do was to get the home environment var
and use it.  so i wanted to do something like this:

    (HOME) getenv {
	(HOME) getenv \home exch def
	\home + (/i_could_have_deleted_all_your_files) (w) files \out exch def
    } {
	(/i_could_have_deleted_all_your_files) (w) files \out exch def
    } ifelse

obviously this fails since + doesn't combine strings.  how do you combine
two strings to make one?  something like

    (fu) (bar) concat

kevin

-- 
kevin at suberic.net          "linux is a cancer"  --steve ballmer
fork()'ed on 37058400      "released 25 august 1991, linux is a virgo" --me
meatspace place: home       linux, not just a star-sign:
http://suberic.net/~kevin                             http://www.linux.com/




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell