[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [SLUG] print to pdf
can be solved easily with
perl -e 'print 'myfile;cat /etc/passwd' =~ m!(\w+?)$!'
that way file will be saved as 'passwd' at the most no nasty meta characters
----- Original Message -----
From: "Jill Rowling" <Rowling@nospam.ali.com.au>
Sent: Thursday, June 14, 2001 12:44 AM
Subject: RE: [SLUG] print to pdf
> hehehe looks like we're all doing it.
> The only difference is I have done something similar for various different
> old CAD formats which don't know how to create proper postscript files.
> Sometimes I have to stick a
> 90 rotate
> something somthing translate
> in here and there but mostly it works nicely.
> It's particularly wild when teamed up with php or PERL web thingy that
> the appropriate translator....
> I put "" round the filename to get round those spaces that M$ programs
> to like generating.
> BTW my PERL / web thingy has to be fairly paranoid about filenames it is
> given, so as to avoid things like a filename called: myfile;cat
> (or worse)
> which most well behaved ? M$ programs can't generate but someone else
> Keep in mind many people run smbd / nmbd as root so just be careful with
> those passed filenames.
> Fun though.
> Jill Rowling, Snr Des. Eng. & Unix System Administrator
> Eng. Systems Dept, Aristocrat Technologies Australia
> 3rd Floor, 77 Dunning Ave Rosebery NSW 2018
> Phone: (02) 9697-4484 Fax: (02) 9663-1412 Email: email@example.com
> > -----Original Message-----
> > From: chesty [mailto:firstname.lastname@example.org]
> > Sent: Thursday, 14 June 2001 17:25
> > To: email@example.com
> > Subject: [SLUG] print to pdf
> CONFIDENTIALITY NOTICE
> This email is intended only to be read or used by the addressee.
> The information contained in this e-mail message may be confidential
> information. If you are not the intended recipient, any use, interference
> with, distribution, disclosure or copying of this material is unauthorised
> and prohibited. Confidentiality attached to this communication is not
> or lost by reason of the mistaken delivery to you.
> If you have received this message in error, please delete it and notify us
> by return e-mail or telephone Aristocrat Technologies Australia Pty
> on +61 2 9413 6300.
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug