• solaris 10 banner printing?

    From home" @21:1/5 to All on Wed Jan 22 10:14:56 2020
    Apparently the Solaris 10 lp prints three banner pages by default.
    How can I reduce this to just one page, i.e. the middle one?
    I know there's the "nobanner" option, but this switches off all banners.
    I *want* a banner, but just the one which makes sense to me.
    TIA

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Keith Thompson@21:1/5 to All on Wed Jan 22 10:14:41 2020
    "Michael Kraemer @ home" <M.Kraemer@gsi.de> writes:
    Apparently the Solaris 10 lp prints three banner pages by default.
    How can I reduce this to just one page, i.e. the middle one?
    I know there's the "nobanner" option, but this switches off all banners.
    I *want* a banner, but just the one which makes sense to me.

    I can't imagine why it would make sense to print 3 banner pages.

    Speculation: Perhaps there's a misconfiguration causing the single
    banner page to take up 3 pages in the printout. Is that consistent
    with what you're seeing?

    --
    Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
    Working, but not speaking, for Philips Healthcare
    void Void(void) { Void(); } /* The recursive call of the void */

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John D Groenveld@21:1/5 to All on Wed Jan 22 19:38:32 2020
    In article <h8qi4uFfpp9U1@mid.individual.net>,
    Michael Kraemer @ home <M.Kraemer@gsi.de> wrote:
    Apparently the Solaris 10 lp prints three banner pages by default.
    How can I reduce this to just one page, i.e. the middle one?
    I know there's the "nobanner" option, but this switches off all banners.
    I *want* a banner, but just the one which makes sense to me.

    I don't recall that bug in S10 but its been years.
    Do you get the extra banners only when printing from your application
    or also when using lp(1)?

    What is your printer configuration?
    John
    groenveld@acm.org

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From home" @21:1/5 to John D Groenveld on Thu Jan 23 11:49:47 2020
    John D Groenveld wrote:
    In article <h8qi4uFfpp9U1@mid.individual.net>,
    Michael Kraemer @ home <M.Kraemer@gsi.de> wrote:

    Apparently the Solaris 10 lp prints three banner pages by default.
    How can I reduce this to just one page, i.e. the middle one?
    I know there's the "nobanner" option, but this switches off all banners.
    I *want* a banner, but just the one which makes sense to me.


    I don't recall that bug in S10 but its been years.
    Do you get the extra banners only when printing from your application
    or also when using lp(1)?

    What is your printer configuration?

    I used

    lpadmin -p xx -v /dev/null -m netstandard -o dest=xx -T PS -I postscript
    enable xx
    accept xx

    to define the printer and

    lp -d xx file.ps

    to print a PostScript file.
    I get the one-page ps file plus three pages of banner.
    I only want one specific page of banner (the middle one).

    John
    groenveld@acm.org

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Keith Thompson@21:1/5 to All on Thu Jan 23 10:40:21 2020
    "Michael Kraemer @ home" <M.Kraemer@gsi.de> writes:
    John D Groenveld wrote:
    In article <h8qi4uFfpp9U1@mid.individual.net>,
    Michael Kraemer @ home <M.Kraemer@gsi.de> wrote:

    Apparently the Solaris 10 lp prints three banner pages by default.
    How can I reduce this to just one page, i.e. the middle one?
    I know there's the "nobanner" option, but this switches off all banners. >>>I *want* a banner, but just the one which makes sense to me.


    I don't recall that bug in S10 but its been years.
    Do you get the extra banners only when printing from your application
    or also when using lp(1)?

    What is your printer configuration?

    I used

    lpadmin -p xx -v /dev/null -m netstandard -o dest=xx -T PS -I postscript enable xx
    accept xx

    to define the printer and

    lp -d xx file.ps

    to print a PostScript file.
    I get the one-page ps file plus three pages of banner.
    I only want one specific page of banner (the middle one).

    Why do you want the middle page of the banner rather than the first
    or last? What do the three pages of banner look like? Is the
    banner printed *before* your ps file? Are you certain that your
    ps file is only one page? Is the ps file itself printed correctly?
    What does "echo hello | lp -d xx" print?

    I wonder if the contents of the banner are defined by a file
    somewhere. Running lp under truss or strace should tell you what
    files lp is opening.

    --
    Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
    Working, but not speaking, for Philips Healthcare
    void Void(void) { Void(); } /* The recursive call of the void */

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John D Groenveld@21:1/5 to All on Fri Jan 24 02:23:20 2020
    In article <h8tc2bF372jU1@mid.individual.net>,
    Michael Kraemer @ home <M.Kraemer@gsi.de> wrote:
    I used

    lpadmin -p xx -v /dev/null -m netstandard -o dest=xx -T PS -I postscript >enable xx
    accept xx

    to define the printer and

    lp -d xx file.ps

    to print a PostScript file.
    I get the one-page ps file plus three pages of banner.
    I only want one specific page of banner (the middle one).

    # touch /tmp/xx
    # lpadmin -x xx
    # lpadmin -p xx -v /tmp/xx -m standard -T ps -I postscript
    # enable xx
    # accept xx
    # /usr/sfw/bin/a2ps -Pxx /etc/release

    How many banners are in /tmp/xx?

    I suspect the printer is configured to print a banner.
    Turn that option off in the menu.

    John
    groenveld@acm.org

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From home" @21:1/5 to John D Groenveld on Fri Jan 24 11:47:09 2020
    John D Groenveld wrote:
    In article <h8tc2bF372jU1@mid.individual.net>,
    Michael Kraemer @ home <M.Kraemer@gsi.de> wrote:

    I used

    lpadmin -p xx -v /dev/null -m netstandard -o dest=xx -T PS -I postscript >>enable xx
    accept xx

    to define the printer and

    lp -d xx file.ps

    to print a PostScript file.
    I get the one-page ps file plus three pages of banner.
    I only want one specific page of banner (the middle one).


    # touch /tmp/xx
    # lpadmin -x xx
    # lpadmin -p xx -v /tmp/xx -m standard -T ps -I postscript
    # enable xx
    # accept xx
    # /usr/sfw/bin/a2ps -Pxx /etc/release

    How many banners are in /tmp/xx?

    Only one, which looks pretty much like the one I want.
    Howewer, when I use my real printer, this banner page comes
    with an additional leading and a trailing page looking as:

    User: me
    Host: my host
    Class: my host
    Job: my file

    these two extra pages I want to get rid off.

    I suspect the printer is configured to print a banner.
    Turn that option off in the menu.

    But I want a banner page. Just not three of them.

    John
    groenveld@acm.org

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)