Solved

Printer Questions

Posted on 1998-10-06
4
309 Views
Last Modified: 2010-04-21
We've got a printer(printer1) set-up through a tty device(tty01).  lpstat showed the printer as not accepting data.  An 'accept tty01' was done which changed the status to accepting data, however, that should have been an 'accept printer1' instead.  All the data is now queueing up instead of printing.  It appears as though the accept changed some property of the printer (it now thinks it's a tty instead of a printer?) so it no longer prints.  Any idea what needs to be changed so it can print again?

We've got a down printer(see above :).  It has a queue of print jobs.  An lpmove (lpmove printer1 printer2) was done to a working printer.  The jobs all disappeared from the original printer1 queue, however, they never printed from the new printer - nor are they now queued up there.  None of them required any special forms, permissions or processing.  Any idea what happened?
0
Comment
Question by:alweiner
  • 2
4 Comments
 
LVL 1

Expert Comment

by:plebras
ID: 2007226
Hie !

1 - tty01 must be disable from login. Use disable tty01 oun SCO or admintool on SOLARIS or sam on HPUX to disable login on this port.

2 - Verify the connection by typing the following "echo HELLO\f >/dev/tty01". You printer must print HELLO if not check the cable.  By default your printer must be configured in 9600b/s, 8b, 1 Stop BIT, NO PARITY.

3 - Type "lpstat -tr" . The scheduler must running if not type "/usr/lib/lpsched" (the directory may differ with the UNIX versions eg  /usr/bin). The scheduler must accept the requests for the printer if not  type "accept printer". The printer must be idle if not type "enable printer"

4 Make a test by " lp -d printer /etc/passwd". If it is a laser printer, you may have to press form feed to eject the page or send : echo \f >/dev/tty01

5 Make the printer by default if you need by " /usr/bin/lpadmin -d printer" (or /usr/lib/..)
Bye
0
 
LVL 1

Author Comment

by:alweiner
ID: 2007227
lpmove?
0
 
LVL 1

Expert Comment

by:plebras
ID: 2007228
Hi

Is the direct printing "echo Hello\f" >/dev/tty01 ok ?

What kind of UNIX and Printer ?

are the files to print correctly formated for the printer (Postcript, raster... HPGL, PCL..)?

is printer1 identical to printer2 (eg file ascii or raster on printer1 and postcript on printer2
0
 
LVL 5

Accepted Solution

by:
tfabian earned 50 total points
ID: 2007229
how about deleting the printer by using the "reject" command.. It's teh inverse/reverse of the "accept" command..

then repeat the "accept" command with the proper printer queue name, remembering to use the "enable" command to actually turn on the queue..


good luck


0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
AIX Server 10 79
Ubuntu install gnome-session-fallback is failing 4 101
unix scripting question 1 89
Linux performance issues with 100% swap usage, etc 15 90
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now