Unix Technical Forum

Limiting print job sizes with Netcat

This is a discussion on Limiting print job sizes with Netcat within the Sco Unix forums, part of the Unix Operating Systems category; --> So, I have a Dymo label printer hooked up through a printserver. Because the Dymo client only recognizes NetBios-styles ...


Go Back   Unix Technical Forum > Unix Operating Systems > Sco Unix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-15-2008, 04:07 PM
Nachman Yaakov Ziskind
 
Posts: n/a
Default Limiting print job sizes with Netcat

So, I have a Dymo label printer hooked up through a printserver. Because the
Dymo client only recognizes NetBios-styles printer selection, I've created a
print queue on a Unix box (506) which uses Netcat with a minimalist print
script. [Dymo tech support claims that the only p/s they support is the HP
175x, but netcat means never having to say you're sorry. :-)] Wonderful. Then
today, a clueless user sent a regular print job to the label printer (the
client software insists on installing the labelwriter as a Windows printer; I
don't think I can remove it without harming the label process) and ate up a
whole bunch of labels, at 3.5 cents each. Ouch.

So, I'm wondering if there is a quick and dirty way in the interface script to
arbitrarily chop the print job at, say, 5k or so.

NYZ

--
_________________________________________
Nachman Yaakov Ziskind, EA, LLM awacs@ziskind.us
Attorney and Counselor-at-Law http://ziskind.us
Economic Group Pension Services http://egps.com
Actuaries and Employee Benefit Consultants
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-15-2008, 04:07 PM
Jean-Pierre Radley
 
Posts: n/a
Default Re: Limiting print job sizes with Netcat

Nachman Yaakov Ziskind typed (on Thu, Sep 09, 2004 at 06:22:43PM -0400):
| So, I have a Dymo label printer hooked up through a printserver. Because the
| Dymo client only recognizes NetBios-styles printer selection, I've created a
| print queue on a Unix box (506) which uses Netcat with a minimalist print
| script. [Dymo tech support claims that the only p/s they support is the HP
| 175x, but netcat means never having to say you're sorry. :-)] Wonderful. Then
| today, a clueless user sent a regular print job to the label printer (the
| client software insists on installing the labelwriter as a Windows printer; I
| don't think I can remove it without harming the label process) and ate up a
| whole bunch of labels, at 3.5 cents each. Ouch.
|
| So, I'm wondering if there is a quick and dirty way in the interface script to
| arbitrarily chop the print job at, say, 5k or so.
|

Run wc -c against the sixth argument to the interface script.

--
JP
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:39 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com