How to send EOT (\004) and the end of PS job
Helge Blischke
h.blischke at srz.de
Thu May 12 08:39:54 PDT 2005
Anonymous wrote:
>
> > Anonymous wrote:
> > > ...
> > > I am not sure whether this is Fedora's printtool or CUPS problem. It
> > > would be helpful, however, if somebody could tell me where and how
> > > should the CUPS configuration be set that the EOT should be sent at
> > > the end of a PS job.
> >
> > That setting is not used by CUPS - it is a holdover in the Fedora
> > tool from the old LPRng days...
> >
> > What CUPS looks for is the JCLEnd attribute in the PPD file.
>
> Well, I have found refences to JCL... in docs and added <04>
> in the last of the following lines (in the imported file):
>
> *JCLBegin: "<1B>%-12345X at PJL JOB<0A>@PJL SET LMULTIPAGEPRINT=OFF<0A>"
> *JCLToPSInterpreter: "@PJL ENTER LANGUAGE = Postscript <0A>"
> *JCLEnd: "<04><1B>%-12345X at PJL EOJ <0A><1B>%-12345X"
>
> Then I re-imported the file (is it OK to re-import, did it really overwrite the previous entries?) but that did not change anything.
>
> I can see no *JCL line in the /etc/cups/ppd/lex.ppd file autogenerated by the system. Instead, I found the following there:
>
> *cupsFilter: "application/vnd.cups-postscript 0 foomatic-rip"
> ..
> *FoomaticRIPCommandLine: "cat %A%Z"
>
> which (AFAIU it right) means that a PS job is simply cat-ed to the printer, with no PJL commands added. This agrees with what I can see when I set the printer device to a file.
>
> I have (temporarily and improperly) solved the problem by adding by hand 'echo -en "\004"' to the FoomaticRIPCommandLine. Now my T430 Lexmark printer gets "Ready" immediately after printing the job. This file, however, gets overwritten every time I change anything in the printer configuration (even when this very printer does not change), so this is surely not the way it should be done.
>
> regards, Michal.
Try to modify the *JCLEnd statement by replacing the last "%-12345X" by
"<04>" (without the
quotes).
Helge
--
Helge Blischke
Softwareentwicklung
SRZ Berlin | Firmengruppe besscom
http://www.srz.de
More information about the cups
mailing list