Professional Web Applications Themes

Cups on solaris 8 - Sun Solaris

Hi I installed cups on solaris 8 successfully and able to give print on my line printer. The problem is /opt/sfw/cups/var/log/cups/page_log is not giving me the right count of number of pages given by the user. $> cat page_log printer root 1 [16/Sep/2003:09:15:19 +0500] 1 1 printer test 2 [16/Sep/2003:09:29:48 +0500] 1 1 printer root 3 [17/Sep/2003:03:52:15 +0500] 1 1 printer root 4 [17/Sep/2003:03:55:41 +0500] 1 1 printer root 5 [17/Sep/2003:05:25:55 +0500] 1 1 printer test 6 [17/Sep/2003:05:27:55 +0500] 1 1 printer test 7 [17/Sep/2003:05:28:46 +0500] 1 1 printer test 8 [17/Sep/2003:05:34:16 +0500] 1 1 printer test 9 [17/Sep/2003:05:37:40 +0500] ...

  1. #1

    Default Cups on solaris 8


    Hi



    I installed cups on solaris 8 successfully and able to give print on my
    line printer.



    The problem is /opt/sfw/cups/var/log/cups/page_log is not giving me
    the right count of number of pages given by the user.



    $> cat page_log



    printer root 1 [16/Sep/2003:09:15:19 +0500] 1 1

    printer test 2 [16/Sep/2003:09:29:48 +0500] 1 1

    printer root 3 [17/Sep/2003:03:52:15 +0500] 1 1

    printer root 4 [17/Sep/2003:03:55:41 +0500] 1 1

    printer root 5 [17/Sep/2003:05:25:55 +0500] 1 1

    printer test 6 [17/Sep/2003:05:27:55 +0500] 1 1

    printer test 7 [17/Sep/2003:05:28:46 +0500] 1 1

    printer test 8 [17/Sep/2003:05:34:16 +0500] 1 1

    printer test 9 [17/Sep/2003:05:37:40 +0500] 1 1

    print root 11 [19/Sep/2003:07:57:56 +0500] 1 1







    But in every print request I have given pages with more than one page
    in length.



    How to enable page accounting on solaris using cups.





    some more details :



    $> /opt/sfw/cups/bin/lpstat -v

    device for print: socket://202.141.151.1:9100/





    $> uname -a

    SunOS SunSol 5.8 Generic_108528-22 sun4u sparc



    regards

    CVR


    --
    Posted via http://dbforums.com
    cvreddy5 Guest

  2. #2

    Default Re: Cups on solaris 8


    "cvreddy5" <com> wrote in message
    news:com... 

    Maybe that is what caused your posting to be so messed up too? All the
    extra line spacing?

    Why would you want to use Cups in the first place?


    Kevin Guest

  3. #3

    Default Re: Cups on solaris 8

    "Kevin" <com> writes: 
    >
    >Maybe that is what caused your posting to be so messed up too? All the
    >extra line spacing?
    >
    >Why would you want to use Cups in the first place?[/ref]

    Because the SysV print spooler s donkey d*ck?


    --
    "The road to Paradise is through Intercourse."
    The uk.transport FAQ; http://www.huge.org.uk/transport/FAQ.html
    [email me at huge [at] huge [dot] org [dot] uk]


    Huge Guest

  4. #4

    Default Re: Cups on solaris 8

    "Huge" <org.uk> wrote in message
    news:bkfkk0$bph$demon.co.uk... 
    >
    > Because the SysV print spooler s donkey d*ck?[/ref]

    Luckily we don't have any donkey's here so that would not be a problem.

    We don't allow animals in the data center anyway.


    Kevin Guest

  5. #5

    Default Re: Cups on solaris 8

    In article <com>,
    "Kevin" <com> wrote:
     
    > >
    > > Because the SysV print spooler s donkey d*ck?[/ref]
    >
    > Luckily we don't have any donkey's here so that would not be a problem.
    >
    > We don't allow animals in the data center anyway.[/ref]

    What about _management_? They're allowed in, aren't they?

    --
    DeeDee, don't press that button! DeeDee! NO! Dee...



    Michael Guest

  6. Moderated Post

    Default Re: Cups on solaris 8

    Removed by Administrator
    Richard Guest
    Moderated Post

  7. #7

    Default Re: Cups on solaris 8

    smart.net (Richard L. Hamilton) writes: 
    >>
    >> Because the SysV print spooler s donkey d*ck?[/ref]
    >
    >How so? I've gotten it to do everything I've ever wanted, albeit with
    >some work.[/ref]
    ^^^^^^^^^

    Precisely. When we upgraded from Solaris 1 to Solaris 2, we had such
    trouble getting the Sol 2 spooling system to work properly, we kept a
    Sol 1 machine hanging around just to do print spooling.

    I wouldn't touch it with a sh*tty stick.

    --
    "The road to Paradise is through Intercourse."
    The uk.transport FAQ; http://www.huge.org.uk/transport/FAQ.html
    [email me at huge [at] huge [dot] org [dot] uk]


    Huge Guest

  8. #8

    Default Re: Cups on solaris 8

    Huge wrote: 

    Well, first of all, back then the SysV-style spooling system had bugs
    and it was genuinely hard to get it work right.

    Second, lpd and /etc/printcap are so vastly different from it that
    it takes some time to adjust. Particularly because the doentation
    is a bit sp. But once you do adjust, you actually begin to
    understand that the SysV spooling system isn't that complex
    and furthermore has some handy features.

    For instance, with /etc/printcap you have to specify explicitly
    how to translate from every possible input format to the one
    accepted by the printer, and that has to be done separately
    for each printer. The SysV style stuff lets you just say
    "this is how to translate text to postscript" one time, in one
    place, and you're done.

    Unfortunately, it still doesn't (as far as I know) let you say
    "this is how you can tell that a file is postscript"[1], which is
    a shame, because if you could do that, I'd have my print system
    accepting JPG, PNG, GIF, PDF, PS, text, .gz, .Z., .bz2, and
    probably more.

    - Logan

    [1] As I understand it, it does recognize several file types,
    but the logic to do so is hard-coded.

    Logan Guest

  9. #9

    Default Re: Cups on solaris 8

    On Sat, 20 Sep 2003 18:22:15 +0000, Logan Shaw wrote:
     

    I removed the SysV printing system from a Solaris x86 server, installed
    LPRng, which uses /etc/printcap, and then installed apsfilter. The filter
    can accept all of those file types, convert them to postscript then pass
    the stream to ghostscript to translate the PS to the format required by an
    HP printer.

    Dave Guest

  10. #10

    Default Re: Cups on solaris 8

    Logan Shaw <rr.com> writes: 

    Based on the old SVR4.0 code that I've seen, the autodetection
    doesn't support any file types besides Postscript and simple (text).
    The rest of the file types must be specified by the user with the
    -T option to the lp command.

    Perhaps autodetection was changed in SVR4.2?

    -Greg
    --
    Do NOT reply via e-mail.
    Reply in the newsgroup.
    Greg Guest

  11. #11

    Default Re: Cups on solaris 8

    cvreddy5 <com> wrote in news:3390608.1063982172
    dbforums.com:
     
    .....
    .....

    hi

    your print jobs are postscript files - right ?
    then it might happen, that your files are non dsc compliant. what means
    they have a showpage command in the ps file (which call a form feed for
    the printer) but actually there's no page counting for the printing
    system. to check if this is the case view your printfiles in ghostview
    (on pc or sun, doesn't matter). if you can go forward and backward, the
    problem is another on. if the file is not dsc compliant you may go one
    page forward but not back.
    if this is true, you can filter your files with ghostscript (pswrite) and
    try again. if the page_log is correct then, you could add an additional
    filter to cups, which converts any non dsc files to dsc files .
    adding an own filter to cups is quite easy, its just a simple shell
    script.

    anyway i'd recommend upgrading to the professional version of cups ESP
    print pro - tons of drivers and a nice gui.

    cheers

    robert



    --
    ________________________________________
    Robert Gruener - rgruener online.de
    ________________________________________
    Robert Guest

Similar Threads

  1. RH9/Cups vs Solaris 5.7 printing
    By Linolil in forum Sun Solaris
    Replies: 6
    Last Post: September 19th, 07:47 PM
  2. Does anyone know how to use cups and gs with solaris?
    By Greg Fisher in forum Sun Solaris
    Replies: 2
    Last Post: July 2nd, 04:22 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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