9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
With use of sed/awk, how can I print all possible combinations of a word with caps/non-caps.
Eg
Applying operation on "cap" should generate output as follows.
cap
CAP
Cap
cAp
caP
CAp
cAP
CaP (12 Replies)
Discussion started by: anil510
12 Replies
2. UNIX for Dummies Questions & Answers
hi all
this s quite a foolish problem. I seem to hav pressed some keys s.t in unix, my letters are comin in caps and with caps lock on, i am getting lowercase letters. :o
Pls help.
Also is there any reference or manual where i can check in case such problems arrise?
thanx in advance
curiosity (4 Replies)
Discussion started by: curiosity
4 Replies
3. UNIX for Advanced & Expert Users
Hi all,
I have to test some user priviliges. The goal is to be sure that an unauthorized user can't restart some modules (ssh, mysql etc...).
I'm trying to automate it with a shell script but in same cases I got the syslog broadcast message.
Is there any way to simply get a return code... (3 Replies)
Discussion started by: Dedalus
3 Replies
4. Shell Programming and Scripting
I'm trying to write a shell script that runs periodically and if I'm not at the keyboard, it should do one thing, but if I am at the keyboard, it should do another thing. Therefore I've decided that it would be good if I could press down the CTRL key, (or some other key) and have the shell script... (8 Replies)
Discussion started by: Ilja
8 Replies
5. HP-UX
Hello,
We are having a problem with running dtterm off a RHEL server. Logging into an HP-UX server from a RHEL 5.1 desktop, setting DISPLAY and running dtterm, the caps lock does not work. We have been playing with xmodmap & stty but to no avail.
Any help appreciated.
mgb (7 Replies)
Discussion started by: mgb
7 Replies
6. Red Hat
Hello,
We are having a problem with running dtterm off a RHEL server. Logging into an HP-UX server from a RHEL 5.1 desktop, setting DISPLAY and running dtterm, the caps lock does not work. We have been playing with xmodmap & stty but to no avail.
Any help appreciated.
mgb (1 Reply)
Discussion started by: mgb
1 Replies
7. HP-UX
where I can set login fail ,lock time
thanks (2 Replies)
Discussion started by: alert0919
2 Replies
8. Shell Programming and Scripting
Hi All,
I have two files say file1 and file2.
I want to check the number of records in file1 and if its atleast 2 (i.e., 2 or greater than 2 ) then I have to check records in file2 .If records in file2 is atleast 1 (i.e. if its not empty ) i have to set some conditions .
Could you pls... (3 Replies)
Discussion started by: mavesum
3 Replies
9. UNIX for Dummies Questions & Answers
Once I knew how to set up a unix file so that the num lock would automatically be on after booting up. How exactly is that done?
Unix has final control on the setting of the num lock from off or on to on at the end of the boot up process.
Any help will be appreciated, especially if detailed.
Oh... (0 Replies)
Discussion started by: jddxxx
0 Replies
lprm(1) General Commands Manual lprm(1)
Name
lprm - remove jobs from line printer queue
Syntax
lprm [-Pprinter] [-] [job #...] [user...]
Description
The command removes a job, or jobs, from a printer's spool queue. Since the spooling directory is protected from users, using is normally
the only method by which a user may remove a job.
The command without any arguments deletes the currently active job if it is owned by the user who invoked
If the - flag is specified, removes all jobs which a user owns. If the super-user employs this flag, the spool queue is emptied entirely.
The owner is determined by the user's login name and host name on the machine where the command was invoked.
Specifying a user's name, or list of user names, causes to attempt to remove any jobs queued belonging to that user (or users). This form
of invoking is useful only to the super-user.
A user may dequeue an individual job by specifying its job number. This number may be obtained from the program. For example,
% lpq -l
1st: ken [job #013ucbarpa]
(standard input) 100 bytes
% lprm 13
The command announces the names of any files it removes and is silent if there are no jobs in the queue which match the request list.
The command kills off an active daemon, if necessary, before removing any spooling files. If a daemon is killed, a new one is automati-
cally restarted upon completion of file removals.
Options
- Removes all jobs owned by you only.
-P printer Removes jobs from specified printer. It may be used to specify the queue associated with a specific printer (otherwise
the default printer, or the value of the PRINTER variable in the environment is used).
Restrictions
Since there are race conditions possible in the update of the lock file, the currently active job may be incorrectly identified.
Diagnostics
``Permission denied" if the user tries to remove files other than his own.
Files
/etc/printcap printer characteristics file
/usr/spool/* spooling directories
/usr/spool/*/lock lock file used to obtain the pid of the current
daemon and the job number of the currently active job
See Also
lpq(1), lpr(1), lpd(8)
lprm(1)