12-10-2012
What do you mean by "stops there"? Does it not let you send any more commands to the shell? I'm not sure I understand the issue.
10 More Discussions You Might Find Interesting
1. Solaris
Hi folks,
could anyone please tell me how can i switch between two users without going thru the su(i.e. root)?
is there any such command?
thanks in advance,
thell (1 Reply)
Discussion started by: thell
1 Replies
2. Shell Programming and Scripting
Can any one tell me :
How we can switch between two users without prompting for the password. (In the SHELL SCRIPT can we fetch the USERID and PASSWORD from a specified file, without using SUDO command)? (2 Replies)
Discussion started by: deepusunil
2 Replies
3. Shell Programming and Scripting
Hi
I want to write a script which can switch between super users.But it asks for the password at the prompt.How can I manage in the script so that it didnt ask me for the password at the prompt. (1 Reply)
Discussion started by: monika
1 Replies
4. AIX
Hi
I want to write a script which can switch between super users.But it asks for the password at the prompt.How can I manage in the script so that it didnt ask me for the password at the prompt. (1 Reply)
Discussion started by: monika
1 Replies
5. AIX
Hi All,
I used to know a comand that you could log in as another user from root, if you didn't know the password for the account.
Can anyone let me know what it is? (2 Replies)
Discussion started by: banchee
2 Replies
6. Solaris
Hi All,
How to restrict the NIS users not to change their passwords in for NIS users??
and my NIS user is unable to login to at client location what could be the problem for this ?
Any body can help me. Thanks in advance. (1 Reply)
Discussion started by: Sharath Kumar
1 Replies
7. Solaris
HI,
I am using the windows 2003 server R2 in there we are using the putty as to access the different AP's
now from the primary AP i want to login to several different AP's using a script
what the script will do is :-
input a text file in which list of different ap's and the corresponding... (0 Replies)
Discussion started by: amiglani
0 Replies
8. Shell Programming and Scripting
Hello Everyone,
I'm new to unix and having trouble with switching users
s_user='sample_user', I need to connect to a remote server using the user "sampleuser" copy files on that remote server. However I am not allowed to add a private key to that same server nor add scripts on sampleuser's... (5 Replies)
Discussion started by: AmazingTyagoman
5 Replies
9. Programming
Hi,
We've been using a perl script to extract datas from several logs to generate a report. I've been asked to rewrite the code in C++. I want to know if it is wise to have a code in C++ and will it be more faster than Perl? (23 Replies)
Discussion started by: Ribosome
23 Replies
10. Shell Programming and Scripting
hi,
i am new to shell scripts
i write a shell script to create multiple users but i need to give passwords to that users while creating users, command to write this script (1 Reply)
Discussion started by: DONFOX
1 Replies
LEARN ABOUT OPENDARWIN
lpoptions
lpoptions(1) Apple Inc. lpoptions(1)
NAME
lpoptions - display or set printer options and defaults
SYNOPSIS
lpoptions [ -E ] [ -U username ] [ -h server[:port] ] -d destination[/instance] [ -o option[=value] ] ... [ -o option[=value] ]
lpoptions [ -E ] [ -U username ] [ -h server[:port] ] [ -p destination[/instance] ] -l
lpoptions [ -E ] [ -U username ] [ -h server[:port] ] [ -o option[=value] ] ... [ -o option[=value] ] [ -p destination[/instance] ] -r
option
lpoptions [ -E ] [ -U username ] [ -h server[:port] ] -x destination[/instance]
DESCRIPTION
lpoptions displays or sets printer options and defaults. lpoptions shows the default printer options when run with no arguments. Other
options include:
-E
Enables encryption when communicating with the CUPS server.
-U username
Uses an alternate username.
-d destination[/instance]
Sets the user default printer to destination. If instance is supplied then that particular instance is used. This option overrides the
system default printer for the current user.
-h server[:port]
Uses an alternate server.
-l
Lists the printer specific options and their current settings.
-o option[=value]
Specifies a new option for the named destination.
-p destination[/instance]
Sets the destination and instance, if specified, for any options that follow. If the named instance does not exist then it is created.
-r option
Removes the specified option for the named destination.
-x destination[/instance]
Removes the options for the named destination and instance, if specified. If the named instance does not exist then this does nothing.
If no options are specified using the -o option, then the current options for the named printer are reported on the standard output.
Options set with the lpoptions command are used by the lp(1) and lpr(1) commands when submitting jobs.
ROOT ACCOUNT OPTIONS
When run by the root user, lpoptions gets and sets default options and instances for all users in the /etc/cups/lpoptions file.
COMPATIBILITY
The lpoptions command is unique to CUPS.
FILES
~/.cups/lpoptions - user defaults and instances created by non-root users.
/etc/cups/lpoptions - system-wide defaults and instances created by the root user.
SEE ALSO
cancel(1), lp(1), lpadmin(8), lpr(1),
http://localhost:631/help
COPYRIGHT
Copyright 2007-2011 by Apple Inc.
29 August 2008 CUPS lpoptions(1)