Filter on remote printer - Aix

This is a discussion on Filter on remote printer - Aix ; Hello I've defined queue and printer using smit on AIX 5.3 - as a remote print queue or using a rembak backend. Both work great. Because I don't need format printing, I'm using standard procesing (I print only PCL from ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: Filter on remote printer

  1. Filter on remote printer

    Hello

    I've defined queue and printer using smit on AIX 5.3 - as a remote
    print queue or using a rembak backend. Both work great. Because I
    don't need format printing, I'm using standard procesing (I print only
    PCL from SAP). And it's ok.

    But now I have to process print files. I have to run something like:

    perl -pi -e 's/\x1B\x28\x30\x4e/\x1B\x28\x32\x4e/g'

    on print file (change ISO-8859-1 to ISO-8859-2). How can I define
    filter?

    The printer works with LPR printserver, but I have also printers with
    JetDirect.

  2. Re: Filter on remote printer

    Ok, I think, I've solved the problem. I've defined another queue with
    backend:

    #!/bin/ksh
    cat $5 | /usr/scripts/hpiso | lp -dPRL1
    exit $?

    and it works. PRL1 is remote printer queue.

    hpsio is:

    #!/bin/sh
    # LS 2007
    # zamiana sekwencji wlaczajacej ISO-8859-1 na ISO-8859-2
    perl -pi -e 's/\x1B\x28\x30\x4e/\x1B\x28\x32\x4e/g'

    --
    Luksoft

  3. Re: Filter on remote printer

    On Nov 28, 11:24 pm, s...@luksoft.org wrote:
    > Ok, I think, I've solved the problem. I've defined another queue with
    > backend:
    >
    > #!/bin/ksh
    > cat $5 | /usr/scripts/hpiso | lp -dPRL1
    > exit $?
    >
    > and it works. PRL1 is remote printer queue.
    >
    > hpsio is:
    >
    > #!/bin/sh
    > # LS 2007
    > # zamiana sekwencji wlaczajacej ISO-8859-1 na ISO-8859-2
    > perl -pi -e 's/\x1B\x28\x30\x4e/\x1B\x28\x32\x4e/g'
    >
    > --
    > Luksoft


    that's pretty heavy; what does the perl bit do exactly ?

+ Reply to Thread