error report redirection

Ask a Question related to SCO, Design and Development.

  1. #1

    Default error report redirection

    In my printer interface script I have the following:
    until /usr/bin/netgearcheck $PRTHOST $PRTPORT
    do
    sleep 10
    done

    If network traffic is really heavy, it occasionally encounters an error.
    The error is mailed to the user who submitted the print job.

    What can I do to this line to cause the lp system to ignore this problem and
    not send the user mail OR redirect the mail to another user.

    Any help appreciated.

    TIA
    Ron



    Ronald J Marchand Guest

  2. Similar Questions and Discussions

    1. ASP .NET - Crystal Report Error
      Hi, I got the following error when I set the report source of the CrystalReportViewer, Can anyone please help me. Thanks...doug. Private Sub...
    2. Error attempting to write location redirection
      in the webserver.log, we are getting "Error attempting to write location redirection to web server (Windows NT error number -2147467259 occurred)"...
    3. Redirection limit error
      I am a newbie to cold fusion. I am getting error "Redirection limit for this URL exceeded. Unable to load the requested page. This may be caused...
    4. Error in report builder
      I'm trying to add a line in the report builder using the line tool, as soon as I drag the line and release I get the error: Object: TReportBand...
    5. Please help: Error - Circular Redirection
      Hi All I would very much appreciate your help: I have two scripts alternating in the background triggering themselves mutually. Here is how: ...
  3. #2

    Default Re: error report redirection

    Tony Lawrence typed (on Thu, Jul 17, 2003 at 05:10:16PM +0000):
    | Ronald J Marchand <rojomar@covad.net> wrote:
    | >In my printer interface script I have the following:
    | >until /usr/bin/netgearcheck $PRTHOST $PRTPORT
    | >do
    | > sleep 10
    | >done
    |
    | >If network traffic is really heavy, it occasionally encounters an error.
    | >The error is mailed to the user who submitted the print job.
    |
    | >What can I do to this line to cause the lp system to ignore this problem and
    | >not send the user mail OR redirect the mail to another user.
    |
    | If your script always does an "exit 0" then the rest of lp is going
    | to assume it was successful..
    |
    | What's actually happening here? Is it sleeping so long that lp
    | assumes the script fails? Perhaps you can be more creative and
    | only check for a short period of time?
    |
    | But then again, why wouldn't you want to notify the user of an error?

    Starting in OSR 5.0.6, inserting CANCEL_MAIL=NO in /etc/default/lpd
    will stop messages about failed printing jobs from being mailed to the
    invoking user.


    --
    JP
    Jean-Pierre Radley Guest

  4. #3

    Default Re: error report redirection

    "Jean-Pierre Radley" <jpr@jpr.com> wrote in message
    news:20030717180018.GA12981@jpradley.jpr.com...
    > Tony Lawrence typed (on Thu, Jul 17, 2003 at 05:10:16PM +0000):
    > | Ronald J Marchand <rojomar@covad.net> wrote:
    > | >In my printer interface script I have the following:
    > | >until /usr/bin/netgearcheck $PRTHOST $PRTPORT
    > | >do
    > | > sleep 10
    > | >done
    > |
    > | >If network traffic is really heavy, it occasionally encounters an
    error.
    > | >The error is mailed to the user who submitted the print job.
    > |
    > | >What can I do to this line to cause the lp system to ignore this
    problem and
    > | >not send the user mail OR redirect the mail to another user.
    > |
    > | If your script always does an "exit 0" then the rest of lp is going
    > | to assume it was successful..
    > |
    > | What's actually happening here? Is it sleeping so long that lp
    > | assumes the script fails? Perhaps you can be more creative and
    > | only check for a short period of time?
    > |
    > | But then again, why wouldn't you want to notify the user of an error?
    >
    > Starting in OSR 5.0.6, inserting CANCEL_MAIL=NO in /etc/default/lpd
    > will stop messages about failed printing jobs from being mailed to the
    > invoking user.
    >
    >
    > --
    > JP
    Unfortunately this is pre 5.0.6. But the print job is not failing. The
    perl script (in netgearcheck) is encountering difficulty and that is what is
    being mailed.

    Ron



    Ronald J Marchand Guest

  5. #4

    Default Re: error report redirection

    Ronald J Marchand <rojomar@covad.net> wrote:
    >The routine checks the status of the print server every 10 seconds. If it
    >is ready, then the job prints else it continues to loop.
    >
    >Why?? you might ask. Because Netgear print servers are buggy.
    Umm, not in my experience. Are you using netcat?

    I have dozens and dozens of netgears in the field, all using netcat. The
    only time I have problems with these is with lpd or using their
    Windows software to go directly. But with netcat
    ( [url]http://aplawrence.com/SCOFAQ/scotec7.html#getnetcat[/url] for those
    who don't know), no problems at all.

    Well, one Linux box the netgear keeps losing its ip address, but the
    customer won't let me find out why, so I can't say that's really
    a netgear problem.

    --
    [email]tony@aplawrence.com[/email] Unix/Linux/Mac OS X resources: [url]http://aplawrence.com[/url]
    Get paid for writing about tech: [url]http://aplawrence.com/publish.html[/url]
    tony@aplawrence.com Guest

  6. #5

    Default Re: error report redirection

    Jean-Pierre Radley <jpr@jpr.com> wrote:
    >Starting in OSR 5.0.6, inserting CANCEL_MAIL=NO in /etc/default/lpd
    >will stop messages about failed printing jobs from being mailed to the
    >invoking user.
    I knew about that, but does it also work for failed jobs as well
    as cancelled?

    --
    [email]tony@aplawrence.com[/email] Unix/Linux/Mac OS X resources: [url]http://aplawrence.com[/url]
    Get paid for writing about tech: [url]http://aplawrence.com/publish.html[/url]
    tony@aplawrence.com Guest

  7. #6

    Default Re: error report redirection

    <tony@aplawrence.com> wrote in message news:bf6qne$vl9$1@pcls4.std.com...
    > Ronald J Marchand <rojomar@covad.net> wrote:
    >
    > >The routine checks the status of the print server every 10 seconds. If
    it
    > >is ready, then the job prints else it continues to loop.
    > >
    > >Why?? you might ask. Because Netgear print servers are buggy.
    >
    > Umm, not in my experience. Are you using netcat?
    Yes I am. And it works as expected. But Netgear print servers with a
    firmware later than 6017 have problems. We had a prior thread here on this
    subject. If the printer is not on line, the job goes into never-never land.
    If I only had one or two I would sledge hammer them into the trash can.
    >
    > I have dozens and dozens of netgears in the field, all using netcat. The
    > only time I have problems with these is with lpd or using their
    > Windows software to go directly. But with netcat
    > ( [url]http://aplawrence.com/SCOFAQ/scotec7.html#getnetcat[/url] for those
    > who don't know), no problems at all.
    >
    > Well, one Linux box the netgear keeps losing its ip address, but the
    > customer won't let me find out why, so I can't say that's really
    > a netgear problem.
    Check the firmware revision ....

    Ron



    Ronald J Marchand Guest

  8. #7

    Default Re: error report redirection

    In article <bf6qne$vl9$1@pcls4.std.com>, <tony@aplawrence.com> wrote:
    >Ronald J Marchand <rojomar@covad.net> wrote:
    >
    >>The routine checks the status of the print server every 10 seconds. If it
    >>is ready, then the job prints else it continues to loop.
    >>
    >>Why?? you might ask. Because Netgear print servers are buggy.
    >
    >Umm, not in my experience. Are you using netcat?
    >I have dozens and dozens of netgears in the field, all using netcat. The
    >only time I have problems with these is with lpd or using their
    >Windows software to go directly. But with netcat
    >( [url]http://aplawrence.com/SCOFAQ/scotec7.html#getnetcat[/url] for those
    >who don't know), no problems at all.
    The old Netgears with the 6017 firmware worked fine. Then they
    moved to 6026 ?? [from memory] and they stopped being 'fine.



    --
    Bill Vermillion - bv @ wjv . com
    Bill Vermillion 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