10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi All,
i want to collect all the users info whose id greater than 999 and print the groups information which they belong.
example :
for user in $(cut -d: -f1,3 /etc/passwd | egrep ':{4}$' | cut -d: -f1); do groups $user; done
centos : centos adm wheel systemd-journal
balu : balu
... (2 Replies)
Discussion started by: balu1234
2 Replies
2. Shell Programming and Scripting
There is a program that we (a company I'm working for) would like to run once per day, and the approach we're taking is to create a fake user to give a location to the data for this program, and to be the user running the program. For the sake of the discussion, let me call the fake user "bob".
... (5 Replies)
Discussion started by: stevendaryl
5 Replies
3. How to Post in the The UNIX and Linux Forums
Hi,
I have set up an HP printer, Model P3005dn" on our server running HP-Ux 11.31.
The printing is fine but I'm also getting an extra page printed with an right arrow (-->) only. I suspect that this could be the "Tab Expansion" or a "CR/LF" character.
Can ayone please advise what could... (0 Replies)
Discussion started by: Koketso
0 Replies
4. Shell Programming and Scripting
Suppose user 'asdf' is not logged into server 'bbbb', but the server is up. User 'asdf' has cron job. Will it be executed? (1 Reply)
Discussion started by: thulasidharan2k
1 Replies
5. UNIX for Dummies Questions & Answers
running red hat linux 6.0\unix - when doing a print job - the user id and job no. are printing on the second page - how do i stop this - cannot see anything in the printcap - am i looking in the wrong place? -true noob here so bear with me - thanks for any info (3 Replies)
Discussion started by: maxtor
3 Replies
6. HP-UX
hi every body
i used " lpstat -o" to show the printer jobs and i already canceld it by "cancel -e -f jobid"
but the problem i found when used " lpstat -o" again it said that job in progress i think because it in the buffer but i don't know how to clear the printer. (9 Replies)
Discussion started by: maxim42
9 Replies
7. AIX
Aix version is 5.2. users are not able to run only at jobs. users are listed in at.allow file.
Getting following Errors:
at -l
at: 0481-108 You are not authorized to use the at command.
atq
0481-067 Cannot change to the /var/spool/cron/atjobs directory.
at 24:10:00 pwd
at:... (5 Replies)
Discussion started by: bpsunadm
5 Replies
8. Solaris
Hi,
how do I query available printer options and set defaults for my print requests?
I have found lpoptions (man lpoptions(1)) on the web but it doesn't seem to be available under Solaris and I can't work out how else to do it.
Thanks,
Bob (2 Replies)
Discussion started by: BobD
2 Replies
9. UNIX for Dummies Questions & Answers
Hello All,
I'm applying for a new job in telecommunications and have been asked to learn unix and pearl scripting. I've got a copy of knoppix Linux 03. I at this point only know how to list files, create directories, change permissions. I was instructed to learn how to create files, basic... (3 Replies)
Discussion started by: cyberjax21
3 Replies
10. UNIX for Dummies Questions & Answers
I have a problem where my printer formfeeds a blank page prior to printing a job. Anyone know where I can turn this off?
AIX O/S - RS-6000 (2 Replies)
Discussion started by: Docboyeee
2 Replies
lpr(1) Easy Software Products lpr(1)
NAME
lpr - print files
SYNOPSIS
lpr [ -E ] [ -P destination ] [ -# num-copies [ -l ] [ -o option ] [ -p] [ -r ] [ -C/J/T title ] [ file(s) ]
DESCRIPTION
lpr submits files for printing. Files named on the command line are sent to the named printer (or the system default destination if no des-
tination is specified). If no files are listed on the command-line lpr reads the print file from the standard input.
OPTIONS
The following options are recognized by lpr:
-E
Forces encryption when connecting to the server.
-P destination
Prints files to the named printer.
-# copies
Sets the number of copies to print from 1 to 100.
-C name
Sets the job name.
-J name
Sets the job name.
-T name
Sets the job name.
-l
Specifies that the print file is already formatted for the destination and should be sent without filtering. This option is equivalent
to "-oraw".
-o option
Sets a job option.
-p
Specifies that the print file should be formatted with a shaded header with the date, time, job name, and page number. This option is
equivalent to "-oprettyprint" and is only useful when printing text files.
-r
Specifies that the named print files should be deleted after printing them.
COMPATIBILITY
The "c", "d", "f", "g", "i", "m", "n", "t", "v", and "w" options are not supported by CUPS and will produce a warning message if used.
SEE ALSO
cancel(1), lp(1), lpstat(1), CUPS Software Users Manual, http://localhost:631/documentation.html
COPYRIGHT
Copyright 1993-2002 by Easy Software Products, All Rights Reserved.
23 January 2001 Common UNIX Printing System lpr(1)