?
Solved

Printer Questions

Posted on 1998-10-06
4
Medium Priority
?
321 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 100 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

719 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