Cat seems to prefix lp output with a 00.

Ask a Question related to AIX, Design and Development.

  1. #1

    Default Cat seems to prefix lp output with a 00.

    I'm trying to send a file to a barcode printer and it's ignoring my data stream because it's prefixed with an ascii 00.

    The first character in the data is not 00.

    The command i'm using is cat /tmp/label |lp -dprintwiz

    Anyone know what might be the problem and how I can get around it.

    Concerned3 Netizen Guest

  2. Similar Questions and Discussions

    1. Dreamweaver cannot use the prefix.... Help Please
      When I am trying to set up a site using coldfusion, I get to the part where it asks me "What URL would you like to use to browse to your site?" It...
    2. Removing prefix from a string...
      Hello, I need to strip strings with letters and numbers to just numbers. How can I turn the following "someXYZ123400" to "12-3400"? Thanks!
    3. URL Prefix Failed
      :confused; I have installed Cold Fusion MX 7 along with CFMX 6. Both as internal web servers. 8500 & 8501. I'm trying to follow along with the...
    4. Namespace Prefix problem
      Hi, i have a SOAP XML which is similar to this: <request xmlns="http://www.someurl.com"> <abc> <xyz></xyz> <xyz></xyz> </abc> I need the...
    5. getting the prefix from ?.something.com
      I would like to use the web address prefix as a database locator. Is this possible to do without creating an individual site. example normal...
  3. #2

    Default Re: Cat seems to prefix lp output with a 00.

    I doubt its cat that is doing it. More likely, the print queue virtual
    printer that you are using has a virtual printer formatter that is doing
    something. To confirm:

    cat /tmp/label | od -xc

    or just try your lp command without cat:

    lp -dqname /tmp/label

    Try this:

    qprt -Pqname -j! /tmp/label

    The -j! disables the virtual printer initialization of the queue prior to
    the job.

    Best regards,
    Paul

    "Concerned3 Netizen" <chuckie@throwitaway.com> wrote in message
    news:mzr9b.1185$Dt1.37641261@newssvr14.news.prodig y.com...
    I'm trying to send a file to a barcode printer and it's ignoring my data
    stream because it's prefixed with an ascii 00.

    The first character in the data is not 00.

    The command i'm using is cat /tmp/label |lp -dprintwiz

    Anyone know what might be the problem and how I can get around it.



    LAIX Software Consulting Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139