Sponsored Content
Full Discussion: Printing Utility
Top Forums UNIX for Dummies Questions & Answers Printing Utility Post 38630 by davidg on Tuesday 22nd of July 2003 05:21:40 AM
Old 07-22-2003
Hi Khalid,

I am afraid it's important to know which OS you are talking about. Some OS'es have such a tool built-in.

Please let us know which OS('es) you are talking about.


@yourservice
David
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

What utility do I use for this?

I want to pull out the 3rd column of information and stick in a file. What is the Utility I use to do this? (8 Replies)
Discussion started by: James
8 Replies

2. UNIX Desktop Questions & Answers

does anyone know about the ied utility?

I am having an issue with the ied utility. I am running HP-UX 11.0 we use ied to connect to an oracle database, I have an alias sqlp setup to connect to the db and every time I try to use sqlp it hangs, but I am able to connect to the database using sqlplus so I know I do not have a problem with... (3 Replies)
Discussion started by: alxsanchez
3 Replies

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

4. UNIX Desktop Questions & Answers

Account Utility

Hi, I'm pretty new to UNIX and LINUX and am trying to find out what utility to use to manage accounts. Thanks for the help in advance. (3 Replies)
Discussion started by: klevr99
3 Replies

5. Shell Programming and Scripting

utility

hi experts, Can you please help me out in removing delimiters with in double quotes from a CSV file. input: ===== a,"bnn,",dgd, "sagfh,dj",ad output ===== a,"bnn",dgd, "sagfhdj",ad there are so mnay fileds in a row and there are millions of rows. Thanks in an advance.... (6 Replies)
Discussion started by: subhendu81
6 Replies

6. Shell Programming and Scripting

How to Unzip a file using unzip utility for files zipped without zip utility ?

Hi, I need to zip/compress a data file and send to a vendor. The vendor does have only unzip utility and can accept only .ZIP files. I do not have zip utility in my server. How do I zip/compress the file so that it can be deflated using unzip command ? I tried gzip & compress commands, but... (1 Reply)
Discussion started by: Sabari Nath S
1 Replies

7. Solaris

ps utility size 0

Hi all, The other day I had a strange behavior with a Netra T2000 with Solaris 10. When I tryied to run the ps utility it showed no output. Checking the /usr/bin I found that the size of ps is zero. Also other utilities like ptree, pstack also had size 0. :confused: I copied the ps from... (1 Reply)
Discussion started by: the noob
1 Replies

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

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

10. UNIX for Beginners Questions & Answers

Printing, SYSPRINTER, IP printing

Dear readers, We have a printer problem with a UNIX system. The OS is Unix IRIX 6.5 We have connected a printerto the system. If we then make a test print everything goes well . (IP printing) But if we make a print from the "orrga,i"program. Then we see all the printouts stuck within the... (3 Replies)
Discussion started by: SergevdH
3 Replies
LPC(8)							    BSD System Manager's Manual 						    LPC(8)

NAME
lpc -- line printer control program SYNOPSIS
lpc [command [argument ...]] DESCRIPTION
The lpc utility is used by the system administrator to control the operation of the line printer system. For each line printer configured in /etc/printcap, lpc may be used to: o disable or enable a printer, o disable or enable a printer's spooling queue, o rearrange the order of jobs in a spooling queue, o find the status of printers, and their associated spooling queues and printer daemons, o change the status message for printer queues (the status message may be seen by users as part of the output of the lpq(1) utility). Without any arguments, lpc will prompt for commands from the standard input. If arguments are supplied, lpc interprets the first argument as a command and the remaining arguments as parameters to the command. The standard input may be redirected causing lpc to read commands from file. Commands may be abbreviated; the following is the list of recognized commands. ? [command ...] help [command ...] Print a short description of each command specified in the argument list, or, if no argument is given, a list of the recognized com- mands. abort {all | printer} Terminate an active spooling daemon on the local host immediately and then disable printing (preventing new daemons from being started by lpr(1)) for the specified printers. bottomq printer [jobspec ...] Take the specified jobs in the order specified and move them to the bottom of the printer queue. Each jobspec can match multiple print jobs. The full description of a jobspec is given below. clean {all | printer} Remove any temporary files, data files, and control files that cannot be printed (i.e., do not form a complete printer job) from the specified printer queue(s) on the local machine. This command will also look for core files in spool directory for each printer queue, and list any that are found. It will not remove any core files. See also the tclean command. disable {all | printer} Turn the specified printer queues off. This prevents new printer jobs from being entered into the queue by lpr(1). down {all | printer ...} -msg message ... down {all | printer} message ... Turn the specified printer queue off, disable printing and put message in the printer status file. When specifying more than one printer queue, the -msg argument is required to separate the list of printers from the text that will be the new status message. The message does not need to be quoted, the remaining arguments are treated like echo(1). This is normally used to take a printer down, and let other users find out why it is down (the lpq(1) utility will indicate that the printer is down and will print the status mes- sage). enable {all | printer} Enable spooling on the local queue for the listed printers. This will allow lpr(1) to put new jobs in the spool queue. exit quit Exit from lpc. restart {all | printer} Attempt to start a new printer daemon. This is useful when some abnormal condition causes the daemon to die unexpectedly, leaving jobs in the queue. lpq(1) will report that there is no daemon present when this condition occurs. If the user is the super-user, try to abort the current daemon first (i.e., kill and restart a stuck daemon). setstatus {all | printer} -msg message ... Set the status message for the specified printers. The -msg argument is required to separate the list of printers from the text that will be the new status message. This is normally used to change the status message when the printer queue is no longer active after printing has been disabled, and you want to change what users will see in the output of the lpq(1) utility. start {all | printer} Enable printing and start a spooling daemon for the listed printers. status {all | printer} Display the status of daemons and queues on the local machine. stop {all | printer} Stop a spooling daemon after the current job completes and disable printing. tclean {all | printer} This will do a test-run of the clean command. All the same checking is done, but the command will only print out messages saying what a similar clean command would do if the user typed it in. It will not remove any files. Note that the clean command is a priv- ileged command, while the tclean command is not restricted. topq printer [jobspec ...] Take the specified jobs in the order specified and move them to the top of the printer queue. Each jobspec can match multiple print jobs. The full description of a jobspec is given below. up {all | printer} Enable everything and start a new printer daemon. Undoes the effects of down. Commands such as topq and bottomq can take one or more jobspec to specify which jobs the command should operate on. A jobspec can be: o a single job number, which will match all jobs in the printer's queue which have the same job number. Eg: 17, o a range of job numbers, which will match all jobs with a number between the starting and ending job numbers, inclusive. Eg: 21-32, o a specific userid, which will match all jobs which were sent by that user. Eg: jones, o a host name, when prefixed by an `@', which will match all jobs in the queue which were sent from the given host. Eg: @freebsd.org, o a job range and a userid, separated by a `:', which will match all jobs which both match the job range and were sent by the specified user. Eg: jones:17 or 21-32:jones, o a job range and/or a userid, followed by a host name, which will match all jobs which match all the specified criteria. Eg: jones@freebsd.org or 21-32@freebsd.org or jones:17@freebsd.org. The values for userid and host name can also include pattern-matching characters, similar to the pattern matching done for filenames in most command shells. Note that if you enter a topq or bottomq command as parameters on the initial lpc command, then the shell will expand any pattern-matching characters that it can (based on what files in finds in the current directory) before lpc processes the command. In that case, any parameters which include pattern-matching characters should be enclosed in quotes, so that the shell will not try to expand them. FILES
/etc/printcap printer description file /var/spool/* spool directories /var/spool/*/lock lock file for queue control DIAGNOSTICS
?Ambiguous command abbreviation matches more than one command ?Invalid command no match was found ?Privileged command you must be a member of group "operator" or root to execute this command SEE ALSO
lpq(1), lpr(1), lprm(1), printcap(5), chkprintcap(8), lpd(8) HISTORY
The lpc utility appeared in 4.2BSD. BSD
July 16, 2002 BSD
All times are GMT -4. The time now is 05:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy