03-17-2011
sorry that does not work..... illegal option.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I needed to write a script to "Collect and Display the Last User ID and Date of Last Login".
The requirement is:
When a workstation stops reporting it could be for many reasons. If we know the last person who logged in before the workstation came down, then we can contact the last... (1 Reply)
Discussion started by: amittal
1 Replies
2. Shell Programming and Scripting
Hi,
I needed to write a script to "Collect and Display the Last User ID and Date of Last Login".
The requirement is:
When a workstation stops reporting it could be for many reasons. If we know the last person who logged in before the workstation came down, then we can contact the last... (1 Reply)
Discussion started by: amittal
1 Replies
3. Shell Programming and Scripting
I know that in order to get a real user name I should use the following command: cut -d: -f5 /etc/passwd. But how can I get the real user name for those users who are currently logged in to the system??? :confused: Can somebody help me??? (3 Replies)
Discussion started by: aga
3 Replies
4. Shell Programming and Scripting
When I typed in ps -a I get this:
PID TTY TIME CMD
31799 pts/3 00:00:00 vim
31866 pts/3 00:00:00 vim
And to check who is currently logged in, I type who
Felix Whoals
Tada Whoals
Lala Whoals
How can I get the user process for all current users who logged in?? I think I need to combine... (14 Replies)
Discussion started by: felixwhoals
14 Replies
5. Shell Programming and Scripting
Is there a way to display the default answer when accepting input from the user in the unix script..
e.g.
ans="n"
read $ans?"Enter y to continue n to exit:"
altough ans contains n the message doesn't display the current contents on ans .. you get
Enter y to continue n to exit: (8 Replies)
Discussion started by: flopster
8 Replies
6. Shell Programming and Scripting
Write a tool that will be displayed in real time, what user connects or disconnects from a system that uses this tool :))
Maybe anyone can help me? (2 Replies)
Discussion started by: titasas
2 Replies
7. Shell Programming and Scripting
so i'm using the following script to attempt to simulate a user visiting a page but unfortunately, it doesn't look like this is working:
wget -nv -r "http://www.mywebsite.com"
does anyone have a better idea of how to do this? the goal here is to run a wget command from a linux host to a... (3 Replies)
Discussion started by: SkySmart
3 Replies
8. Shell Programming and Scripting
Hi all - I'm completely stumped by a script I'm working on...
The short version is I have a file called 'lookup' and in it are hundreds of names (first and last). I have a script that basically allows the user to enter a name, and what I need to have happen is something like this:
Record... (8 Replies)
Discussion started by: sabster
8 Replies
9. UNIX for Advanced & Expert Users
Hello All,
Was recently working on an requirement where we have to search files more than a specific number, following is the example on same.
Let's say file names are test_40000.txt,test_40001.txt and so on till test_99999.txt.
Now requirement was to search from find command only those... (1 Reply)
Discussion started by: RavinderSingh13
1 Replies
10. Programming
I figured it out by now. (0 Replies)
Discussion started by: Ralph
0 Replies
LEARN ABOUT MINIX
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)