HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Non-HP printer setup
Operating System - HP-UX
1836367
Members
2080
Online
110100
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2003 08:16 AM
04-09-2003 08:16 AM
Hi
I have never work with printer before I need big time help.
We have eltron bar code printer. We just want to send simple text file which has four line in it. Printer is directly connected with unix workstation.
How do I configure it? what is the model script? I try to read other post about it but it is not making sense to me, maty be I am dumb. I have dumb model script that we are using to setup our old Epson dot matrix printer.
Here is what I was doing for my dot matrix pritner
lpadmin -plb -mdumb -v/dev/c0t1d0_lp
I have never work with printer before I need big time help.
We have eltron bar code printer. We just want to send simple text file which has four line in it. Printer is directly connected with unix workstation.
How do I configure it? what is the model script? I try to read other post about it but it is not making sense to me, maty be I am dumb. I have dumb model script that we are using to setup our old Epson dot matrix printer.
Here is what I was doing for my dot matrix pritner
lpadmin -plb -mdumb -v/dev/c0t1d0_lp
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2003 11:53 AM
04-09-2003 11:53 AM
SolutionHello,
Here is what I suggest.
. Use SAM to define a local printer.
Do not bother about what model-script
to use (this will be taken care of later)
But in SAM you will have to specify the
correct port to connec to (serial or parallell)
. When you have defined the printer with SAM
the model script for the printer will be
found in /etc/lp/interface as a file with
the same name you gave to the printer in
SAM.
Replace this file with the simplest model-script you can find. It may be that the dumb
script you used for your matrix printer is ok.
If not, here is about the simplest
interface-script available:#!/usr/bin/sh
# $Source: /hpux/shared/supp//usr/src/cmd/lp/./model/dumbplot,v $
# $Revision: 72.2 $
#
# lp interface for dumb plotter
#
copies=$4
# Handle disable and cancel traps
trap "trap 15;kill -15 0;exit 0" 15
# The remaining arguments are files
shift; shift; shift; shift; shift
files="$*"
# Plot the spooled files
i=1
while [ $i -le $copies ]
do
for file in $files
do
cat "$file" 2>&1
done
i=`expr $i + 1`
done
exit 0
If you use the serial port you may have to
use a stty command at the top of the script
to set the speed. Check other scripts in
/usr/spool/lp/model to see how this is done.
It may also be that you will have to add
this command after the cat "$file ..
echo "\014\c"
to get the paper out of the printer.
You may have to check the manual for your bar code printer to see if a special command is
needed to do this. "\014\c" is a form-feed.
Good luck
Olav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 07:06 AM
04-10-2003 07:06 AM
Re: Non-HP printer setup
I am half way now.
Thanks
I was able to communicat to printer. I did print a line of text.
I setup printer as you say. created a text file with control sequence and print that control sequence file and I have one line of text.
Second question now. How do I convert my four line text to printer sequence.
file1 is looks like
Unix works fine
Linux may work fine
Windows works some time
when I try to print this text file it won't work until I have some thing like
A50,0,0,1,1,1,N"unix works fine"
A50,50,0,1,1,1,N"Linux may works fine"
A50,100,0,1,1,1,N"Windows works some time"
Then it works.
How can I convert my text file? My programmer is not going to change his application. I have to do some this on my side. Can I create new file in model script?
Thanks
I was able to communicat to printer. I did print a line of text.
I setup printer as you say. created a text file with control sequence and print that control sequence file and I have one line of text.
Second question now. How do I convert my four line text to printer sequence.
file1 is looks like
Unix works fine
Linux may work fine
Windows works some time
when I try to print this text file it won't work until I have some thing like
A50,0,0,1,1,1,N"unix works fine"
A50,50,0,1,1,1,N"Linux may works fine"
A50,100,0,1,1,1,N"Windows works some time"
Then it works.
How can I convert my text file? My programmer is not going to change his application. I have to do some this on my side. Can I create new file in model script?
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP