printing a Unix file


 
Thread Tools Search this Thread
Special Forums UNIX Desktop Questions & Answers printing a Unix file
# 1  
Old 01-09-2005
printing a Unix file

I need to print Unix files on a daily basic. I have a Del 962 Ink Jet printer. Can anyone tell me how to print? I also need to know if Unix can print on an ink printer?

Last edited by Brokersol; 01-09-2005 at 03:31 PM..
# 2  
Old 01-10-2005
If you did not search the forum, you might want to try doing this, since there are already many topics on printing. If you do not see the printing topics, in this board, set the "Show Threads" to "last year" and you'll see them all.

Depending on which OS your running, and how you need to print, it can be relatively simple to alittle difficult to setup.
Yes, you can print to ink jet printers.
If your printer is hooked up via a parallel port, you can try printing right now. Turn printer on. open a terminal, and as root or su try the command

ls > /dev/lp0

This may work or may not, if it does work then it should print out a directory listing. Though the quality will not be there, it does work quickly.

If you using GNU/Linux or BSD, then you can use either LPRing or CUPS for your print server.
If your using some other UNIX brand, try searching the man pages for printing help.

man -k printing
# 3  
Old 01-10-2005
Quote:
Originally posted by locustfurnace
If you did not search the forum, you might want to try doing this, since there are already many topics on printing. If you do not see the printing topics, in this board, set the "Show Threads" to "last year" and you'll see them all.

Depending on which OS your running, and how you need to print, it can be relatively simple to alittle difficult to setup.
Yes, you can print to ink jet printers.
If your printer is hooked up via a parallel port, you can try printing right now. Turn printer on. open a terminal, and as root or su try the command

ls > /dev/lp0

This may work or may not, if it does work then it should print out a directory listing. Though the quality will not be there, it does work quickly.

If you using GNU/Linux or BSD, then you can use either LPRing or CUPS for your print server.
If your using some other UNIX brand, try searching the man pages for printing help.

man -k printing
# 4  
Old 01-10-2005
Quote:
Originally posted by Brokersol
The Dell printer seem to have problems printing Unix report/files. I can receive them on a HP but not a Dell. I have spent 6 hours with Dell and they do not know anything behond Window applications and were of no help.

I do not have a LPR port on my printer as some have suqquested I try. I am a real Nebie to all of this lingo so be gentle.
# 5  
Old 01-10-2005
As locustfurnace indicates, we need a lot more information before we can start diagnosing the problem.

First things first. Which OS are you using? Please post the output of uname -a.

Also; are you using CUPS or LPR(ing)?
run ps -ef | egrep 'cupsd|lpd' - what's the output?

If you're using Linux or one of the *BSDs, check out http://www.linuxprinting.org/ - is your Dell printer listed? Is it a USB or Parallel printer? If it's parallel did you try ls > /dev/lp0 as locustfurnace suggested?

More information please.

Cheers
ZB
# 6  
Old 01-10-2005
Quote:
Originally posted by zazzybob
As locustfurnace indicates, we need a lot more information before we can start diagnosing the problem.

First things first. Which OS are you using? Please post the output of uname -a.

Also; are you using CUPS or LPR(ing)?
run ps -ef | egrep 'cupsd|lpd' - what's the output?

If you're using Linux or one of the *BSDs, check out http://www.linuxprinting.org/ - is your Dell printer listed? Is it a USB or Parallel printer? If it's parallel did you try ls > /dev/lp0 as locustfurnace suggested?

More information please.

Cheers
ZB
I think I am way over my head. I have no idea what you want. I guess I'll just buy an HP printer as it works well for what I need. Thanks for your attempt to help.
# 7  
Old 01-10-2005
It's not as bad as it sounds, honest! Smilie

Just open up a terminal window - how you do this depends on which Operating System you are using. Is it Linux (RedHat, SUSE, Mandrake, Slackware, Debian, etc), FreeBSD, OpenBSD, NetBSD, OS X, Solaris, HP-UX, AIX, etc - which "flavour" of Unix are you using?

You're looking for something called "xterm" - this is a popular terminal emulator (think of the Windows cmd.exe command shell). If you're using SUSE Linux for example, you'll already have a taskbar shortcut to "Konsole" - this is the SUSE terminal emulator.

Once you've got a terminal window open, you should (depending on your OS, shell, etc - don't worry for now) - see a command prompt - probably a dollar ($) or maybe your username, hostname or other information followed by a dollar.

At this prompt, type in
uname -a

This will post your OS version, plus a lot of other useful information - let us know what this command outputs.

After this, try
ps -ef | egrep 'cupsd|lpd'
Don't worry too much about what the command does for now - post the output and we can see which printing subsystem you're using.

Then, at the prompt (if your printer is connected to the parallel port on the back of your laptop/desktop) type
ls > /dev/lp0
the printer should whirr into life and spit out a listing. Let us know if it does just that.

I know it can all be a bit daunting, but stick with it - you'll be pleased you did in the long run Smilie

Cheers
ZB
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need help with printing in UNIX

I have a file that looks like below: a:b:c d e f g h u:f:j e:k:c0 d9 e1 x55 h789 p:d:hh dtyu gasd lrtyu oqa Is there a way to print is as given below: a:b:c d e f g h u:f:j e:k:c0 d9 e1 x55 (5 Replies)
Discussion started by: sags007_99
5 Replies

2. Shell Programming and Scripting

Printing the output of a db2 query on to an unix file

I want to print the output of a db2 query, on to an unix file in a manner that the columns are separated by 'commas'. Please help me out..thanx in advance (1 Reply)
Discussion started by: prasan_ven
1 Replies

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

4. SCO

Unix Printing

Hi, The code is generating a file of 180 lines, I can check that with vi, but when I am executing the following command for duplex printing , it is printing 4 pages which include 2 blank pages 2 & 4 (page no). $ lp -d printer -0 'land,double,lpi=8,length=90' filename It is expected to print... (1 Reply)
Discussion started by: dsd
1 Replies

5. UNIX for Advanced & Expert Users

Unix Printing

Hi, I need to print PDF from Unix command line on couple of printers like Lexmark T644PS, HP LJ4100DTN connected to Windows Print Server. I need options of mentioning the printer name and choosing tray number for printing. I was successfull in FTPing PDF files to printer but i could not find... (2 Replies)
Discussion started by: snvijaysankar
2 Replies

6. UNIX for Advanced & Expert Users

UNIX Printing

Greetings. Got a problem I'm working on, not that familiar with UNIX to be honest. We're having some issues printing from a UNIX Server, hoping someone can help. Here's the situation: We have remote offices that use Microsoft Windows Remote Desktop Client to connect to a Windows 2003 Terminal... (5 Replies)
Discussion started by: MPW
5 Replies

7. UNIX for Dummies Questions & Answers

Printing under UNIX

Hi All As UNIX newbie, (I know Open VMS very well) I have the following question: If I use the lpr command for printing, I normally specify the printer name an the file I want to print. So far so good. Once this is done I can than check with the lpstat command the status of my printjob, but... (2 Replies)
Discussion started by: duc
2 Replies

8. SCO

File Editing and Printing in Unix

Hi, Can some one provide me with, some good links containing help for file editing and printing in unix. Regards, Muhammad Tayyab Shereen Motor Co. Kuwait (1 Reply)
Discussion started by: tayyabq8
1 Replies

9. Shell Programming and Scripting

printing file in unix sun os 5.7

Hi, I am trying to print a file with one of the field has over 1000 charactors. When I print the file only part of the data was printed. What can I do to be able to print out all the data in this field? Thanks (3 Replies)
Discussion started by: whatisthis
3 Replies

10. 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
Login or Register to Ask a Question