Solved

Printer Questions

Posted on 1998-10-06
4
300 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
Comment Utility
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
Comment Utility
lpmove?
0
 
LVL 1

Expert Comment

by:plebras
Comment Utility
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
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

772 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

11 Experts available now in Live!

Get 1:1 Help Now