Sponsored Content
Full Discussion: Unix Printing issue
Top Forums UNIX for Advanced & Expert Users Unix Printing issue Post 302486547 by jgt on Sunday 9th of January 2011 10:02:59 AM
Old 01-09-2011
Quote:
Originally Posted by asamon
I am currently struggling with attempting to print text files on a SCO 5.0.7 server to a network printer. The printer is an Hp LJ P2015dn There is an existing printer set up, and when I do a:
Code:
lp -d myprinter /etc/hosts

the first line of the hosts file is all that prints. I even attempted to use "netcat" to send text directly to the printer using:
Code:
cat /etc/hosts | netcat -h myprinter -p 9100

I continue to get the same results, only the very first line in the hosts file will print. I have attempted this on other text files and still the 1st line is all that prints. Please help.


Andy

Moderator's Comments:
Mod Comment Use code tags please.
I suppose that you have solved this problem by now, but for the benefit of others:
You need to add and escape sequence to the beginning of the print file, since it seems not to be in the driver (model file).
Add "<esc>&k2G" to turn line feed into carriage return linefeed.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Printing Problems in unix ... ( Bar-cdoe - Ip Printing)

Hi guys ... i need ur help with some printing problem in unix ... first prob. : i wanna print from my NCR unix to an Win NT , Ip based printing server ( HP JetDirect ) . My issue , is it possible to print directly to an Ip address from unix ? How do i make it work to get any results ?... (3 Replies)
Discussion started by: QuickSilver
3 Replies

2. UNIX for Dummies Questions & Answers

Printing Issue

I have a printing issue I need some help with. I have a printer that will advance a sheet of paper prior to printing a print job. This is not a banner page, it's just a blank page. The O/S is AIX. I know that in SCO and Other Unix's there are printer interface files that more or less tell the... (1 Reply)
Discussion started by: Docboyeee
1 Replies

3. Shell Programming and Scripting

line feed printing issue

I am have an issue with the carrige or line feed chars showing up on info converted to a pdf file from a Orcale tool. Any direction would be appericated. ex. John doe 12435 1 232344 1 Jane doe 12435 1 424343 1 when should be like this John doe... (1 Reply)
Discussion started by: sherrod6970
1 Replies

4. SCO

Local Printing Issue in SCO Unix OS 5.0.5

Folks, Have a SCO OpenServer 5.0.5 legacy box on site that has run our legacy ERP system for about 15 years now. Primarily uses an Okidata 321 ML Turbo line printer (defined as 'printer') attached to the system's parrel port at /dev/lp0. System primarily operates as a terminal server with... (2 Replies)
Discussion started by: SystemsAdminAS
2 Replies

5. Shell Programming and Scripting

date printing issue

Hello folks Below command shows current date echo `date +%Y-%m-%d` 2010-04-21 How to show one day old date, i want see like 2010-04-20 (1 Reply)
Discussion started by: learnbash
1 Replies

6. Solaris

Printing Issue On Solaris 10

Synopsis: Solaris 10 SunFire v880 with two networked HP laser printers set up through HPPI. Test page will print through HPPI but can't print to them us the lp command. When using the lp command it just hangs and causes the Samba process to fail. We have a SunFire v880 running Solaris 10. $$... (1 Reply)
Discussion started by: KenLynch
1 Replies

7. UNIX for Dummies Questions & Answers

Sco Unix printing : jobs hangs in queue - printing via lp versus hpnpf

Hi, We have a Unix 3.2v5.0.5. I installed a printer via scoadmin, HP network printer manager with network peripheral name (hostname and ipadres are in /etc/hosts). This is the configuration file : Code: root@sco1 # cat configurationBanner: on:AlwaysContent types: simpleDevice:... (0 Replies)
Discussion started by: haezeban
0 Replies

8. Solaris

Network Printing issue

I have network printer registerd in solaris environment. When I issue print, it prints banner page. The issue printer is registerd in Print server which is running on Linux environment. So when I issue print in Print server, it doesn't print banner page as banner settings are made to turn off It... (6 Replies)
Discussion started by: Sunil Koya
6 Replies

9. Solaris

Solaris Printing Issue

Message from lp on sunnyD (???) ... Subject: Problem with printer (name) The printer (name) has stopped printing for the reason given below. Fix the problem and bring the printer back on line to resume printing. The reason(s) it stopped (multiple reasons indicate repeated attempts): ... (2 Replies)
Discussion started by: sydalackk
2 Replies

10. UNIX for Beginners Questions & Answers

Printing issue with AIX 7.2

Hello group. I recently upgraded my company's server from an IBM P520 w/AIX 5.1 to a new Power 8 w/AIX 7.2. The old server used serial printing and we turned off the print queing feature. We did this because we have many custom forms and did not want a que/spooling situation where a print job... (1 Reply)
Discussion started by: Len Davis
1 Replies
DIRECTOMATIC(1) 					      General Commands Manual						   DIRECTOMATIC(1)

NAME
directomatic - Print without spooler SYNOPSIS
directomatic -P <printdef> [-J jobtitle] [-o option=value [...]] [file] DESCRIPTION
Directomatic is a filter script to print with free software printer drivers without the need of a print spooler. It is designed to be used together with a Foomatic printer definition file. Options -P <printdef> where printdef is the printer definition file to use. -J <jobtitle> where job title will be printed in the head line of every page of a plain text job. -o option=value Set an arbitrary option. file The file to print. Commands Directomatic will print from standard input unless a file to print is specified on the command line. If your printer definition file is in /etc/foomatic/direct or ~/.foomatic/direct you do not need to specify its path. Put a (instructions in the file) to redirect the output of directomatic to your printer instead of standard output. To make normal users able to print this way add them to group lp and make sure the appropriate printer device file /dev/lpX is group-writable. See http://www.linuxprinting.org/direct-doc.html FILES
/etc/foomatic/direct/<queue> The foomatic printer definition file. EXIT STATUS
directomatic returns 0 unless something unexpected happens. AUTHOR
Manfred Wassmann <manolo@NCC-1701.B.Shuttle.de> for the foomatic project using output from the associated binary. BUGS
None so far. Foomatic Project 2001-05-07 DIRECTOMATIC(1)
All times are GMT -4. The time now is 11:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy