printing devices


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers printing devices
# 1  
Old 12-18-2003
Question printing devices

I am new in unix, and I need to fix a printer, but I don't even know the difference between /dev/ttys printers and lp printers. Can someone explain this to me and tell me how I cancel jobs in both of them?

I will appreciate it, thank you.
# 2  
Old 12-18-2003
Not too many details here. I'll assume that you're using HP-UX 11.00 on some 9000/s800 box.

The tty verses lp thing is just how the printer connects to the computer.

A tty style printer uses an rs 232 serial interface. To the kernel, the device looks like an ascii terminal. So it uses the tty driver.

A lp style print uses a parallel interface and so it uses a different driver.

When the printer is setup in a software sense, one of the things you select is a "model script". This script then becomes the "interface script". You may need to tweak the interface script or you may not. But in the case of a tty printer, it must set up the baud rate and stuff. The lp style interface script must know how to set it up.

But the interface script is all that is different. The same commands should work both printers. And in either case the "cancel" command should be able to cancel a print job.
# 3  
Old 12-18-2003
mm


I have a problem with a printer in the unix network, is printing garbled. I assume the problem is in unix.
I think it was good to start by cancelling all printing jobs from that printer, but I wasn't able to do so. I just know to cancel jobs in lp -d formats.
The format of the printer's name is:
/dev/ttys12

Could you give me some help? I appreciate any suggestions.



Last edited by HN19; 12-18-2003 at 04:54 PM..
# 4  
Old 12-18-2003
You still have not provided any details about your system. If you are canceling print jobs with "lp -d" then it will be one that I'm not familiar with. I would use "lp -d" to create a print job.

Still, I do have a couple of general ideas to try. Sometimes someone will send a large unprintable print to a printer. The printer will then emit page after page of garbage. But nothing is really wrong. So your idea to cancel all of the print jobs is a good one. That might be all you need.

The next level up from this kind of thing is when someone prints some garbage to a smart printer. The printer may take the garbage as a command to go into line drawing mode or something. You need to check the docs for your printer, but everytime I have this, it could be fixed by turning the printer on and off. You definately want to try that.

And finally printers sometimes "break". Something goes wrong and they need repair. I'm not a hardware guy so I can't elaborate on that. But maybe you can swap printers between two systems. Does the problem follow the printer? Or does it stay with the unix system? That gives you a good clue where the problem is.
# 5  
Old 12-18-2003
Use your lp commands.

lp -o "printername" #to list jobs in the queue

Use lprm to remove them, or cancel as well.


do a man for lp, and check the SEE ALSO section for other lp(printer) commands that will most likely be helpful in the future.
# 6  
Old 12-22-2003
Thank you, now I know that the printer I have is more like a device. Stilll I can't get it to print.
I was reading about verifying getty process (this are the running process right?) and there is a command: ps -t ttysnn that shows you the actual process, and I used it and there was a process, I try killing it, but whenever I kill one, another different appears.

Then I try comparing the settings with a printer that does work, with this command: stty -a < /dev/ttys12, and the speed was different. I read that for optimum performance I needed to set the speed at 9600 baud. The problem is I don't know how to change the settings.

I read how to change them, you need to invoke sysadmsh, but I can't do that. When I type it shows: sysadmsh: not found.

Any ideas of how can I fix this?

Last edited by HN19; 12-22-2003 at 04:26 PM..
# 7  
Old 12-22-2003
How can I change the baud rate??
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. Windows & DOS: Issues & Discussions

Linux to Windows Printing: PDF starts printing from middle of page.

We are using Red Hat. We have a issue like this: We want to print from Linux, to a printer attached to a Windows machine. What we want to print is a PDF. It prints, but the printing starts from the middle of the page. In the report, there is no space at the top but still printing starts from the... (5 Replies)
Discussion started by: rohan69
5 Replies

3. Programming

Raw devices in C

Hi guys. what is the benefits of using raw devices in programming? which applications mostly use raw devices? how can i use raw devices in C programs? is there any system calls or library functions? (1 Reply)
Discussion started by: majid.merkava
1 Replies

4. UNIX for Dummies Questions & Answers

/dev X /devices

Hi folks, I am trying to learn Unix based in Linux... In Linux, in /Dev are files related to cards, mouse, etc.. how about Unix? What is the difference between /Dev and /Devices? Thanks, Fernanda (0 Replies)
Discussion started by: ffpradella
0 Replies

5. UNIX for Dummies Questions & Answers

passthrough devices vs. named devices

I am having trouble understanding the difference between a passthrough device and a named device and when you would use one or the other to access equipment. As an example, we have a tape library and giving the command "camcontrol devlist" gives the following output: akx# camcontrol... (1 Reply)
Discussion started by: thumper
1 Replies

6. Solaris

what is /devices/pseudo/ ??

Hi all, what does this mean? if then <something> fi here is what i know.. it checks if the specified argument no($devid) in some function call is made into a block device and then proceeds with the execution of the loop. However am not understand what lofi@0:means? also is there... (3 Replies)
Discussion started by: wrapster
3 Replies

7. UNIX for Dummies Questions & Answers

Devices in Unix

How can I display the devices attached to my computer through the command line? And, how do I get information about each device listed? I'm looking to make sure that my DLT drive is recognized by the computer. Using FreeBSD, if that helps. Thanks! (1 Reply)
Discussion started by: derekc132002
1 Replies

8. UNIX for Dummies Questions & Answers

Unix devices

Hi I am trying to determine the access to unix devices. I found the follow access description which I have been told is a symbolic link and is not the actual file. I was also told that all symbolic links will have rwxrwxrwx access. kmem: lrwxrwxrwx 1 root 27 May 28 16:06 /dev/kmem ->... (2 Replies)
Discussion started by: GW01
2 Replies

9. 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

10. HP-UX

HP-UX 10.20 devices

Is it possible to create the CDROM device file for a drive attached to the parallel port? I have a removable CDROM drive (gift - I'm trying not to return it, but may have to anyways) that attaches via parallel port. The only device that I can attach to that hardware address is /dev/c1t0d0_lp, a... (9 Replies)
Discussion started by: LivinFree
9 Replies
Login or Register to Ask a Question