Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Perl and Serial Printer

by diskcrash (Hermit)
on Apr 17, 2004 at 18:56 UTC ( #346004=note: print w/replies, xml ) Need Help??

in reply to Perl and Serial Printer

Yo Shadox,

Things like font sizes, italics, bold etc. generally come from escape sequences such as those found for the DEC VT100 character set. You need to locate the manufacturer(s) of the printer(s) that you are interested in to get the appropriate control codes to set these attributes. You generally "set attribute" with one command and "unset attribute" with another. The tough part is you have to intersperse your text with the appropriate commands, which is the kind of thing Perl was designed for.

You may also have to be sure the printer is in the "right state" with reset commands before printing. At least invoices and receipts are of a fairly uniform style for printing. In some case you can download crude logos too. We did this with an NEC printer attached to a serial terminal for a County Recorders office system. Good luck.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://346004]
[Discipulus]: we too; using opsview alarms
[marto]: the key word: outsourcing ;)
[Corion]: marto: Yeah, feels like that ;) You could set up the cronjob that auto-creates tickets :-))
[marto]: the ticketing system does not accept calls via email, nor has it a working API. It's tied into Active Directory for authentication and the Solaris boxes aren't on that domain
[Corion]: The one thing I haven't figured out a solution to is how to get an edge-trigger instead of sending an email every 5 minutes if the usage is above 90%. I want one mail when it goes over 90% but no more emails as long as it stays between 90% and 95%.
[Corion]: marto: Clever! ;)
[Corion]: You can only reach me by pager
[Corion]: Maybe the solution would be to launch a cron job every minute that takes two measurements a minute apart and sends a mail if the usage is below on the first and above threshold on the last measurement
[marto]: that's essentially it :)
[marto]: I think the long term solution would be to have sysadmins that do their job, so I don't have to do everything :P

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2017-01-24 10:10 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (203 votes). Check out past polls.