Sponsored Content
Full Discussion: printing a Unix file
Special Forums UNIX Desktop Questions & Answers printing a Unix file Post 60122 by zazzybob on Monday 10th of January 2005 05:21:34 PM
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
 

10 More Discussions You Might Find Interesting

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

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

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

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

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

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

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

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

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

10. 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
OPENVT(1)							     Linux 1.x								 OPENVT(1)

NAME
openvt - start a program on a new virtual terminal (VT). SYNOPSIS
openvt [-c vtnumber] [-s] [-u] [-l] [-v] [--] command command_options DESCRIPTION
openvt will find the first available VT, and run on it the given command with the given command options, standard input, output and error are directed to that terminal. The current search path ($PATH) is used to find the requested command. If no command is specified then the environment variable $SHELL is used. OPTIONS -c vtnumber Use the given VT number and not the first available. Note you must have write access to the supplied VT for this to work. -e Directly execute the given command, without forking. This option is meant for use in /etc/inittab. -s Switch to the new VT when starting the command. The VT of the new command will be made the new current VT. -u Figure out the owner of the current VT, and run login as that user. Suitable to be called by init. Shouldn't be used with -c or -l. -l Make the command a login shell. A - is prepended to the name of the command to be executed. -v Be a bit more verbose. -w wait for command to complete. If -w and -s are used together then openvt will switch back to the controlling terminal when the com- mand completes. -- end of options to openvt. NOTE
If openvt is compiled with a POSIX (GNU) getopt() and you wish to set options to the command to be run, then you must supply the end of options -- flag before the command. EXAMPLES
openvt can be used to start a shell on the next free VT, by using the command: openvt bash To start the shell as a login shell, use: openvt -l bash To get a long listing you must supply the -- separator: openvt -- ls -l HISTORY
Earlier, openvt was called open. It was written by Jon Tombs <jon@gtex02.us.es or jon@robots.ox.ac.uk>. The -w idea is from "sam". SEE ALSO
chvt(1), doshell(8), login(1) 19 Jul 1996 V1.4 OPENVT(1)
All times are GMT -4. The time now is 05:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy