Find the answer to your Linux question:
Results 1 to 3 of 3
Hi all, I'm new to linux, and I have one basic question: Where can I put escape sequences so they are send to the printer before starting each print job ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2003
    Location
    Barcelona
    Posts
    1

    Linux printers and escape sequences.


    Hi all,

    I'm new to linux, and I have one basic question:


    Where can I put escape sequences so they are send to the printer
    before starting each print job ??

    Thank's

  2. #2
    Linux Enthusiast
    Join Date
    Jun 2002
    Location
    San Antonio
    Posts
    621
    make a script that contains:
    Code:
    #!/bin/sh
    echo -en $ESCAPE_SEQUENCE > /dev/lpr
    /usr/bin/new_lpr $*
    then move /usr/bin/lpr to /usr/bin/new_lpr and move that script to /usr/bin/lpr . This will have problems if, say, you are using cups and not standard ole' LPR, or if the printer needs these control sequences to set up, and then it doesn't get the output from lpr (it fails perhaps). If that happens it could be in a state of "forever waiting" on that stuff from lpr.
    I respectfully decline the invitation to join your delusion.

  3. #3
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Only if you use that message, remember not to print anything while another job is queued or in printing. The best way would, of course, be to find the actual script or program that is run to convert postscript to your printer's control language.

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •