- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: command line printing format problem ( urgent ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
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
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
02-12-2004 03:50 AM
02-12-2004 03:50 AM
Printer: Lexmark Network Printer ( Optra SE 3455 )
I setup print queue using SAM.
Now, I can easily use Netscape in HP-UX to print out any HTML file and plain text file successfully, even HTML files with images. And also I can use a Lexmark printer test utility to print out a formatted letter paper with different fonts.
But the problem now is that I have problem to use command line to print out a plain text file in correct format, like the file '/etc/passwd', etc.( I have tried so many pain text files but failed to print out good format paper, and I have to use command line to schedule my printing job )
For example, when i wanted to print out /etc/passwd with: lp -d
or lp -d
root:*:0:3::/:/sbin/sh
daemon:*:1:5::/:/sbin/sh
bin:*:2:2::/usr/bin:/sbin/sh
sys:*:3:3::/:
adm:*:4:4::/var/adm:/sbin/sh
uucp:*:5:3::/var/spool/uucppublic:/usr/lbin/uucp/uucico
lp:*:9:7::/var/spool/lp:/sbin/sh
...
The result I got is: ONLY 1 letter size paper
root:*:0:3::/:/sbin/sh
(NOTE: those
(Only 4 lines were printed, and each line was aligned to the right side, ALL other lines are missing)
So, how to control such printing format in this case ? Is there any good document for HP-UX printing formating ?
Thanks !
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2004 04:08 AM
02-12-2004 04:08 AM
Re: command line printing format problem ( urgent )
This also allows you to customize the interface files.
http://downloads.lexmark.com/cgi-perl/downloads.cgi?ccs=229:1:0:175:0:0&emeaframe=&fileID=886
Formatting in UNIX is the sole responsibily of the application. I suspect that Netscape is actually printing everything in PostScript.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2004 04:34 AM
02-12-2004 04:34 AM
Re: command line printing format problem ( urgent )
to do this use markvision, directly via printer control panel, or put the printer IP address on your browser. Go to PCL emulation menu.
hope this helps.
Gustavo.-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2004 04:51 AM
02-12-2004 04:51 AM
Re: command line printing format problem ( urgent )
I think the problem is that when I use 'lp' to send job to print queue, I don't know how HP-UX control the printing format at this time, that's why i got a bad formated paper.
I think maybe there is a config file which i need to setup properly to define the print format before I can use command line 'lp', or is there any other 'lp' options/parameters which I need to use ?
Thanks !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2004 04:56 AM
02-12-2004 04:56 AM
Re: command line printing format problem ( urgent )
How to use Markvision?
could you please tell me more detail about that ?
Where's control panel ? you mean CDE's ?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2004 05:00 AM
02-12-2004 05:00 AM
Re: command line printing format problem ( urgent )
Another thing is that I can use my windows Notepad to print out plain text file( like readme.txt ) to that printer without any format problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2004 05:12 AM
02-12-2004 05:12 AM
Re: command line printing format problem ( urgent )
The Lexmark driver package must be installed first.
The file to download from http://drivers.lexmark.com/ is DRIVERS-HPUX1X.PKG.Z
uncompress it then swinstall it.
It will install "Lexmark Enhanced Printer Drivers Package" and "Lexmark Screen Fonts Package". After completion, run: /opt/lexmark/setup.print (use the default of bin for Administrative group, and install fonts as an additional font directory.
Then use /usr/bin/lexprt program to add queues.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2004 05:19 AM
02-12-2004 05:19 AM
Re: command line printing format problem ( urgent )
ftp://ftp.lexmark.com/driver/unix/Drivers/docs/drivers-userguide.pdf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2004 05:26 AM
02-12-2004 05:26 AM
Re: command line printing format problem ( urgent )
I could see the error message via using 'lpstat -t' that:
Messsage: disabled by scheduler, Printer interface script returned non-zero exit status
And the print queue can't be enabled !
I got a solution for this error message from Lexmark's website(that's a bug), which asked me to download one file called "marknet_model" from Lexmark's website and replaced the queue interface file "/usr/spool/lp/interface/
Unfortunately, no progress, same error !
Unless I used SAM to create a queue, which replaced that interface file "/usr/spool/lp/interface/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2004 05:31 AM
02-12-2004 05:31 AM
SolutionMarkvision is a printer managment software from Lexmark. It's free, and come with the drivers CD of almost every Lexmark printer {or you can download from www.lexmark.com}. With markvision yo can control, setup and configure several network printers in remote way.
By Control Panel I means the physical panel on the printer.
I guess you have trouble with "raw line printing" because "lp" command does not format the output nor uses PCL/PS commands to "accomodate" the printing. It sends plain text to the printer. Instead Notepad, Netscape uses printer driver to format the output, with apropiate print control commands to format the output.
Gustavo.-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2004 05:33 AM
02-12-2004 05:33 AM
Re: command line printing format problem ( urgent )
I read that PDF 2 weeks ago, I tried to use Lexmark's utility to install the driver, but it didn't work, even haven't printed out any paper :(
Please read my message above...
BTW, my Lexmark printer is Network printer, not remote printer...
Something strange is that there is no option in SAM to config non-HP network printer, so, I used "remote printer" from menu to create a new queue, and it worked, just can't print out good formatted paper via commmand line...
Any suggestion for this ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2004 06:16 AM
02-12-2004 06:16 AM
Re: command line printing format problem ( urgent )
You are right !!!!!!!!!!!
After I went to the physical printer and changes the setting in PCL EMUL MENU for CR/LF ( turned them to ON ), I can now successfully print out a formatted plain text file !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2004 11:03 PM
06-28-2004 11:03 PM
Re: command line printing format problem ( urgent )
i have the same problem on a HP Laserjet 5Si printer and I could not find the LF-CR option to turn it on..I found that this is a problem of missing filters... that the carriage return does not also send the next line to the first column ... but since this printer is a network printer.. i was wondering even if i find this LF-CR option ,will turning it on affect my other users printing from windows.. what do i do ?
if this is the only solution where is this option on the laserjet 5
thanx