|
On Thu, 14 Apr 2005, Scott Klement wrote:
customer that routinely emails pdfs that were created using lp5250d. Here is the relevant part of the configuration:
outputcommand = scs2ascii > /tmp/output.ps ; ps2pdf /tmp/output.ps /home/user/pspdf.pdf
Lets see... scs2ascii will take an SCS document from an output queue and convert it to plain ASCII text (.TXT document). Your customer then takes that and runs it through ps2pdf (?!) as if it's PostScript?!
we have an instance of lp5250d running for each user that wants to email these pdfs. The user simply moves the spooled file to their appropriate out queue and then attaches the file that is created to their email message.
That addresses my concerns -- assuming that it's legal in your environment to have a different output queue for each desintation e-mail address.
For example, I have an e-mail address for a vendor in my VENMST file. When I want to send him a PO, I create a PDF document and send it to his e-mail address.
Using your method, I'd have to a separate output queue for 6000 different vendors! That's a lot of output queues!
outputcommand = scs2pdf> /home/samba/<reportname>-`date +%Y-%m-%d-%H-%M-%S`.pdf
That's actually a good idea... However it assumes that no two reports will be made at the same second -- which isn't a good idea. Particularly since if that happens, there won't be any error message, you'll just simply trash the first one and replace it with the second one.
Really? What can you do with the results on a Linux box that you can't do on the iSeries?
James Rich
It's not the software that's free; it's you. - billyskank on Groklaw
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.