Sponsored Content
Full Discussion: LPDEST not set
Top Forums UNIX for Dummies Questions & Answers LPDEST not set Post 38783 by Perderabo on Friday 25th of July 2003 09:54:41 AM
Old 07-25-2003
It is not unusual for LPDEST to be not set. You can establish a systemwide default printer when you setup spooling. To see this sytemwide default (if it exists) use:
lpstat -d

The system wide default should be the best possible choice for the highest number of users. But if it doesn't work for you, then you set LPDEST to something that works for you in your own login scripts.

The .profile file is the right choice for many shells, but not all shells. If it doesn't work for you, let us know which shell you are using.
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

unsetting (set -C) and set -o noclobber

I use a lot of text edditing on my laptop, and about a year and half ago I read my first unix bootk which gave the noclobber command and how to unset it.. now that my files are some what overflowing I need to use noclobber or the set -C option... I know the >| to override the no overwite command... (2 Replies)
Discussion started by: moxxx68
2 Replies

2. Shell Programming and Scripting

set -o vi giving set: Syntax error

when trying : set -o vi getting error like- : set: Syntax error help me Double post (of sorts). Continue here. (0 Replies)
Discussion started by: RahulJoshi
0 Replies

3. UNIX for Dummies Questions & Answers

How to set server's ip address, router, network mask and set if it is an internal or external ip?

Hello, I need to write a program which sets server's ip address, router, network mask. Program also should set if it is an internal or external ip. Maybe someone can help me ? Any information from u is very useful :b: I stopped at .. :( #!/bin/sh A=`hostname -i` echo "server ip address is $A"... (4 Replies)
Discussion started by: zagaruika
4 Replies

4. HP-UX

What is the use of command set -- and set - variable?

Hi, I am using hp unix i want to know the use of the following commands set -- set - variable thanks (4 Replies)
Discussion started by: gomathi
4 Replies

5. Shell Programming and Scripting

set Net:SSH:Expect timeout and set it again.

SSHing into a machine can take a few seconds, but after I'm in, the commands return quickly. I was wondering if the timeout setting can be changed once I'm logged into the machine. Does anyone know if this can be set on the fly? The problem here is, if I have to set timeout = 10, it'll take 10... (1 Reply)
Discussion started by: mrwatkin
1 Replies

6. Solaris

LC_ALL & LANG are set OK, but others couldn't set locale correctly.

Hi, I have a Solaris (SunOS 5.10) installed, by default with the en_AU.UTF-8 locale. I want to change it to en_US.UTF-8 With AU, I have no issues whatsoever, so I installed the language package and now locale -a shows "en_US.UTF-8". Problem is even with LC_ALL set in etc/default/init, the... (2 Replies)
Discussion started by: asdfg
2 Replies

7. UNIX for Dummies Questions & Answers

One set of executables but multiple set of configuration

i don't know where to put this question hence it is here. Presently, i have X unix machines which each of them running a set of executables with various unique configurations. i would like to have run multiple set of machines the same set of executeables but each running different... (0 Replies)
Discussion started by: lchunleo
0 Replies

8. Shell Programming and Scripting

Help needed with shell script to search and replace a set of strings among the set of files

Hi, I am looking for a shell script which serves the below purpose. Please find below the algorithm for the same and any help on this would be highly appreciated. 1)set of strings need to be replaced among set of files(directory may contain different types of files) 2)It should search for... (10 Replies)
Discussion started by: Amulya
10 Replies
LP(1)							    BSD General Commands Manual 						     LP(1)

NAME
lp -- front-end to the print spooler SYNOPSIS
lp [-cs] [-o option] [-d printer] [-n num] [name ...] DESCRIPTION
The lp utility is a front-end to the print spooler as required by the IEEE Std 1003.2 (``POSIX.2'') specification. It effectively invokes lpr(1) with the proper set of arguments. It generally prints the named files on the destination printer. The following options are available: -c Make the lp command exit only after further access to any of the input files is no longer required. The application can then safely delete or modify the files without affecting the output operation. -d dest Specify a particular printer. If no -d is provided on the command line, the contents of the environment variables LPDEST or PRINTER (with this precedence) are taken as the destination printer. -m Send mail upon completion. -n num Specify that num copies of each of the named files shall be printed. -o option Printer specific options. Not supported, provided only as a compatibility option for SVR. -s Silent operation. Not supported, provided only as a compatibility option for Version 2 of the Single UNIX Specification (``SUSv2''). -t title Set the job title to title. ENVIRONMENT
As described above, the variables LPDEST and PRINTER are examined to select the destination printer. SEE ALSO
lpr(1) STANDARDS
The lp command is expected to comply with the IEEE Std 1003.2 (``POSIX.2'') specification. AUTHORS
This implementation of the lp command has been written by Jorg Wunsch. BUGS
The IEEE Std 1003.2 (``POSIX.2'') specification does not provide any means to print non-text files. It rather requires the files to be printed to be text files limited to reasonable line lengths and printable characters. BSD
January 22, 1995 BSD
All times are GMT -4. The time now is 12:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy