Sponsored Content
Full Discussion: Print to file in UNIX
Top Forums UNIX for Dummies Questions & Answers Print to file in UNIX Post 25510 by kristy on Wednesday 31st of July 2002 10:55:27 AM
Old 07-31-2002
I'm looking for a more automated process.

Is it possible to define a remote printer in printcap that points to a file location?
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Print a Graphics File using a SCO Unix Command

I'm using SCO_SV release 3.2v5.0.7 and would like to know how to print a Graphics file (a .tif file) to a HPLaserJet printer using a SCO unix command. I've used nothing but the 'lp' command to print reports to different printers. (I found an answer, I did a find for tiff* and came up with the... (0 Replies)
Discussion started by: Steve_93630
0 Replies

2. HP-UX

Print Problem in UNIX. Need to know the option to specify the print paper size

Hi, Could any one please let me know what is the option available in UNIX to print by specifying the paper size? We are using Unix11i. I could n't see any option specified in the 'lp' command to print the report by specifying the size of the paper. It would be of great help to me, if... (1 Reply)
Discussion started by: ukarthik
1 Replies

3. UNIX for Dummies Questions & Answers

help to print text file in unix system

I am using SCO Unix to print text file. But the word size is too large, it is always over page (A4) when I print. Does Any one know how to use command change word size and make it fit on the page to print text file. I use command: lp -d (printer name) textFileName (16 Replies)
Discussion started by: wendyz
16 Replies

4. Shell Programming and Scripting

Unix help to find blank lines in a file and print numbers on that line

Hi, I would like to know how to solve one of my problems using expert unix commands. I have a file with occasional blank lines; for example; dertu frthu fghtu frtty frtgy frgtui frgtu ghrye frhutp frjuf I need to edit the file so that the file looks like this; (10 Replies)
Discussion started by: Lucky Ali
10 Replies

5. UNIX for Dummies Questions & Answers

how to print a PDF file in UNIX

on a PROGRESS environment, i create an invoice which at printing it must generate both the .dat for the invoice that was sent to the printer and the .dat for the PDF version. we have never printed PDF files in our lp printer until recently. i've done a bit of googling and it comes down to that i... (2 Replies)
Discussion started by: pdf2ps
2 Replies

6. UNIX for Dummies Questions & Answers

how to print the column that contains a string in delimited file in unix

Hi Team, I have a requirement to print the column or find the column number of a particular string in delimited (;) file. Ex: aaa;bbb;ccc;rrr;mmm; gggg;rrr;mmmm;ssss;eee;aaa; ccc;gggg;tttt;bbbb;dddd;ggggg;rrr; my file contains 1000+ rows like above example with semicolon... (3 Replies)
Discussion started by: baskivs
3 Replies

7. Shell Programming and Scripting

How to print logs in unix prompt or to a log file?

I am executing a stored procedure through shell script. In the procedure, i have dbms_output.put_line to log the comments. This is working fine and but logs are available only after the execution of the pl/sql procedure's completion. I want to print the log comments while executing the procedure... (2 Replies)
Discussion started by: vel4ever
2 Replies

8. Shell Programming and Scripting

UNIX help to print 50 lines after every 3rd occurrence pattern till end of file

I need help with extract/print lines till stop pattern. This needs to happen after every 3rd occurrence of start pattern and continue till end of file. Consider below is an example of the log file. my start pattern will be every 3rd occurrence of ERROR_FILE_NOT_FOUND and stop pattern will be... (5 Replies)
Discussion started by: NSS
5 Replies

9. UNIX for Beginners Questions & Answers

Print Error in Console and both Error & Output in Log file - UNIX

I am writing a shell script with 2 run time arguments. During the execution if i got any error, then it needs to redirected to a error file and in console. Also both error and output to be redirected to a log file. But i am facing the below error. #! /bin/sh errExit () { errMsg=`cat... (1 Reply)
Discussion started by: sarathy_a35
1 Replies
lprsetup(8)						      System Manager's Manual						       lprsetup(8)

NAME
lprsetup - printer spooler set up program SYNOPSIS
/usr/sbin/lprsetup DESCRIPTION
The lprsetup command provides an interactive facility for administrating the line printers on your system. This utility is also the com- mand-line version of printconfig, a graphical user interface available in X-windows or the Common Desktop Environment (CDE). See the printconfig(8) reference page for information on invoking the graphical user interface. Note that when you invoke printconfig from the command line, you have options to run the interface in different formats. Printer configuration can also be performed from the SysMan Menu and SMS interfaces. The lprsetup program contains online help and default answers to questions about adding, deleting, or changing the characteristics of any of the line printers on your system. Whenever a question is asked, the default selection is given in brackets [ ]. You can press Return in response to the question to accept the default, or enter an alternate value for the given parameter. You can obtain help information at any prompt by entering a question mark (?). After the help information is displayed, you are reprompted. The lprsetup program uses the /etc/lprsetup.dat file to determine the list of supported printers. See lprsetup.dat(4) for a current list of supported printers. The program knows about all of the possible symbols in the /etc/printcap file. See printcap(4) for a current list. After you have entered a printer specification, and have verified that it is correct, lprsetup then creates the spooling directory, links the output filter, and creates an /etc/printcap entry for the new printer. If the printer is connected to your system, you must specify the printer device name which is in the lp printcap entry. If lp is set to /dev/ttynn, choose the default setting dev when you see the following prompt: printer connection type 'ct' If you choose dev, you are prompted for the baud rate, br. The default is the recommended baud rate for the selected printer. If lp is set to another device, for example /dev/lp0 the lprsetup program assumes that you are setting up a printer with a parallel port, for example, lg02. It does not prompt you for device type information, and serial port specific entries are not put into the /etc/printcap entry. If the printer is remote, that is, if it is connected to a remote machine, you must set the line printer device to NULL (lp=:) and provide the following information items: Printer synonyms Name of the remote machine Name of the remote printer Spooling directory on the local machine If the printer is connected to a LAT, you must specify LAT when prompted for the printer connection type. It is important to enter LAT in all uppercase letters. (The connection will not be made if you enter lat for the printer connection type.) After you specify LAT, the sys- tem prompts you for the baud rate (br). The default is the recommended baud rate for the selected printer. Configuring Compaq Advanced Printing Software When lprsetup is used under Compaq Advanced Printing Software, you must configure an inbound gateway defining the rm and rp print symbols in the /etc/printcap file. To use this option: After configuring the general print characteristics, you will be prompted to Enter the printcap symbol you wish to mod- ify... Enter rm and then enter a new vaue of @dpa. Confirm the new value. Enter rp and provide a print queue name, such as "printer1". Configuring Printing on Clusters When lprsetup is invoked on a cluster, additional options are available which enable you to setup and administer cluster-wide printing. The on print symbol is used in the /etc/printcap file to specify: localhost, for networked (TCP/IP) printers Cluster member (host) names on which the print queue will be shared Refer to the printcap(4) reference page and Cluster Administration guide for more information. SEE ALSO
Commands: latcp(8), MAKEDEV(8), printconfig(8), sysman(8), sysman_intro(8), sysman_station(8) Files: printcap(4), lprsetup.dat(4) Network Administration System Administration Cluster Administration Compaq Advanced Printing Software documentation lprsetup(8)
All times are GMT -4. The time now is 07:51 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy