09-18-2003
Could not find any information on a lock command from man pages. You can change the time through the GUI interface for CDE Screen Style Manager - Window - Screen lock.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Working on AIX 4.3
I have an active exe that accepts files for processing on our RS6000. Day to day i store these files in a secure place and at the end of the day I mv them one by one. After some reading and ofcourse trial and error i figured out that this helps...
mv `ls -l |head -l | awk... (2 Replies)
Discussion started by: buRst
2 Replies
2. UNIX for Dummies Questions & Answers
how can I lock my keyboard while I'm away from the computer without using lock command. What other commands gives me the option to lock keyboard device?
thanks (7 Replies)
Discussion started by: dianayun
7 Replies
3. BSD
Say for instance, I would like to reduce the delay/waiting time for the boot-time menu from 10 seconds to 5 seconds, how would I go about doing it?
From what I've been able to find, entering "autoboot 5" into the right file would take care of that for me, but the man pages are unclear as to... (1 Reply)
Discussion started by: DownSouthMoe
1 Replies
4. HP-UX
where I can set login fail ,lock time
thanks (2 Replies)
Discussion started by: alert0919
2 Replies
5. Shell Programming and Scripting
Hi,
I am having the following problem.
test > hourOfDay=06 ; delayTime=$(((9-$hourOfDay)*60)) ; echo $delayTime
180
test > hourOfDay=07 ; delayTime=$(((9-$hourOfDay)*60)) ; echo $delayTime
120
test > hourOfDay=08 ; delayTime=$(((9-$hourOfDay)*60)) ; echo $delayTime
bash: (9-08: value... (5 Replies)
Discussion started by: jbsimon000
5 Replies
6. Red Hat
Hello all,
If anyone has time, I have a few questions:
How do I do the following in Linux. We are using Red Hat and Oracle Enterprise Linux, which is based on Red Hat too.
1. How to lock the account after a few (like 3) invalid password attempts?
2. How do you lock a screen after 30... (1 Reply)
Discussion started by: nstarz
1 Replies
7. Shell Programming and Scripting
I have an awk script, and want to introduce a time delay. How can I do this? (3 Replies)
Discussion started by: kristinu
3 Replies
8. 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
9. Emergency UNIX and Linux Support
Hi All,
I have solaris-11 global and multiple non-global zones running, which all are on same network. They are not in NIS. When we open putty session and give user-name, it takes long time in asking password (around 40-50 seconds) on Global zone. While on non-global zones, it is working... (9 Replies)
Discussion started by: solaris_1977
9 Replies
10. UNIX and Linux Applications
Hi all,
I would like some help with a sendmail problem:
We have a new system comprising of 4 T7-1 servers, each hosting 5 LDOMs, all domains running Solaris 11.3
All emails sent from every one of these domains (including the control domains) sit in the queue for 3 mins 11 secs (sometime 3m 12s,... (11 Replies)
Discussion started by: Mysturji
11 Replies
LEARN ABOUT FREEBSD
lockf
LOCKF(1) BSD General Commands Manual LOCKF(1)
NAME
lockf -- execute a command while holding a file lock
SYNOPSIS
lockf [-kns] [-t seconds] file command [arguments]
DESCRIPTION
The lockf utility acquires an exclusive lock on a file, creating it if necessary, and removing the file on exit unless explicitly told not
to. While holding the lock, it executes a command with optional arguments. After the command completes, lockf releases the lock, and
removes the file unless the -k option is specified. BSD-style locking is used, as described in flock(2); the mere existence of the file is
not considered to constitute a lock.
If the lockf utility is being used to facilitate concurrency between a number of processes, it is recommended that the -k option be used.
This will guarantee lock ordering, as well as implement a performance enhanced algorithm which minimizes CPU load associated with concurrent
unlink, drop and re-acquire activity. It should be noted that if the -k option is not used, then no guarantees around lock ordering can be
made.
The following options are supported:
-k Causes the lock file to be kept (not removed) after the command completes.
-s Causes lockf to operate silently. Failure to acquire the lock is indicated only in the exit status.
-n Causes lockf to fail if the specified lock file does not exist. If -n is not specified, lockf will create file if necessary.
-t seconds Specifies a timeout for waiting for the lock. By default, lockf waits indefinitely to acquire the lock. If a timeout is speci-
fied with this option, lockf will wait at most the given number of seconds before giving up. A timeout of 0 may be given, in
which case lockf will fail unless it can acquire the lock immediately. When a lock times out, command is not executed.
In no event will lockf break a lock that is held by another process.
EXIT STATUS
If lockf successfully acquires the lock, it returns the exit status produced by command. Otherwise, it returns one of the exit codes defined
in sysexits(3), as follows:
EX_TEMPFAIL The specified lock file was already locked by another process.
EX_CANTCREAT The lockf utility was unable to create the lock file, e.g., because of insufficient access privileges.
EX_UNAVAILABLE
The -n option is specified and the specified lock file does not exist.
EX_USAGE There was an error on the lockf command line.
EX_OSERR A system call (e.g., fork(2)) failed unexpectedly.
EX_SOFTWARE The command did not exit normally, but may have been signaled or stopped.
SEE ALSO
flock(2), sysexits(3)
HISTORY
A lockf utility first appeared in FreeBSD 2.2.
AUTHORS
John Polstra <jdp@polstra.com>
BSD
July 7, 1998 BSD