It is currently Wed, 17 Oct 2018 23:07:49 GMT



 
Author Message
 print to a file
   I am trying to print to a file from Oracle for use by a mainframe.
My printcap entry looks like this:

lp183|183|rms|pr0304:\
        :lf=/usr/adm/lp183err:\

:lp=/u001/app/applmgr/product/10.7/adt_boaprd01/1.0.0/out/rmsonline.out:\

        :sd=/usr/spool/lpd183:\
        :sf:\
        :sh:

   It works, however, it doesn't reset the file before each print
(because it thinks it's a device and doesn't have to), so the file
contents after a long file: a, then a short file: b, would be something
like "a"+"remainder of b", instead of just "a".

   Any ideas?
   I tried playing with filters, but didn't get anywhere useful.
   I am using Compaq Digital Unix 4.0b
   Please reply to my e-mail, as well.
   Thanks.



 Fri, 27 Apr 2001 03:00:00 GMT   
 print to a file

Maybe you use the 'if:' section to run a shell script that resets the
mainframe file.  I have no idea how a mainframe 'file reset' goes, but you
can specify 'if:/usr/local/bin/mylprscript' that will receive stdout from
lpd and should print the desired output to stdout.  There's nothing that
prevents the script from doing anything else in between.  You can even use
this 'feature' to create a batch job queueing system.

jwp



 Sat, 28 Apr 2001 03:00:00 GMT   
 
   [ 2 post ] 

Similar Threads

1. Printing to a file not to /dev/lp0

2. printing to postscript file or to pdf with ghostscript

3. trouble printing plain text files

4. Howto print to (PCL) file?

5. lpd crashes when printing large PS files

6. Q: Everything prints but Emacs files?

7. Printing Large Postscript Files in Linux

8. printing Linux text file on Brother HL-630

9. Printing DJ500 Filter File

10. printing .dvi .ps files


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software