05-08-2008
File Locks
Hi,
How to list the files which are not locked?
I want to read the files that are not locked by other user only.
can we do it using ls option?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
At times we see the "file in use" when we run RCS (revision conrol system" on this file. Most of time, we do not see this message.
How do we identify the locks on this file and how do we release those locks? I can imagine it happens when there are some processes running on this file.
THe... (1 Reply)
Discussion started by: vadimsf
1 Replies
2. Programming
I have an application that is multithreaded and concurrent. Multiple instances of the application must run at the same time.
Each thread in each process accesses shared resources. For this purpose I've employed Butenhof's read-write locks. Inter-process locking is based on fcntl. For example,... (3 Replies)
Discussion started by: adamb
3 Replies
3. Solaris
Hi,
One of my prod jobs using Ab Initio (which is Solaris Based) returned this error:
========= Error from Reformat_3.000 on f7j21-01.xxxx3.com ========= Failed opening file for flow: Resource temporarily unavailable
Flow = "Flow_11.000" connected to output port "out0" of "Reformat_3.000"... (0 Replies)
Discussion started by: teenu18
0 Replies
4. UNIX for Advanced & Expert Users
Hi,
We have an interesting problem with F-Secure SSH (v 3.1.0) running on HP-UX. It seems that when scp or sftp commands are issued they are successful but it counts as a 'strike' against the target user locking the account out after 3 attempts.
When the user is re-enabled in SAM - it reports... (4 Replies)
Discussion started by: b0bbins
4 Replies
5. Linux
Hi there!
Can someone please tell me what is for the directory /etc/locks and provide me with an example. I certainly don't understand it very well.
Any help will be much appreciated! (1 Reply)
Discussion started by: agasamapetilon
1 Replies
6. UNIX for Advanced & Expert Users
I want to know all the locks on a file - read, write etc acquired by various processes. Is there any way to know ? (2 Replies)
Discussion started by: radiatejava
2 Replies
7. AIX
We are finding sometimes after a user process has been killed, when the user tries to reconnect, he gets the message that there has been too many attempts and his password is locked.
Has anyone see this?
AIX 5.3 tl9 sp3
thanks (0 Replies)
Discussion started by: MizzGail
0 Replies
8. Programming
I need help!Many Thanks!
Now,I try to manage the shared memory inter-process .
Inevitably,I have to deal with the synchronous.
I know the pthread_rwlock in posix,and I compile ,then run successfully in Red Hat Enterprise 4.
I have a doubt about whether the Posix supports the system such as... (1 Reply)
Discussion started by: weizh
1 Replies
9. Shell Programming and Scripting
Hi,
I have the following requirement:
I have load_cdr as main scriptwhich loads all the file records into vertica database through unix script. But there are two files which try to update same table..n thats y my script is getting failed...
Can any1 give me some logic how to over come this... (6 Replies)
Discussion started by: gnnsprapa
6 Replies
10. Solaris
hello;
I have inherited a SunOS sjcorpftp 5.10 Generic_118855-36 i86pc i386 i86pc
whenever someone needs a new password, I change it via
"passwd username"
then
"passwd -f username" so they can change their password
on my only sun sparc 5.9 you can "accessed denied" when you... (0 Replies)
Discussion started by: ikeleong
0 Replies
LEARN ABOUT HPUX
msem_lock
msem_lock(2) System Calls Manual msem_lock(2)
NAME
msem_lock() - lock a semaphore
SYNOPSIS
DESCRIPTION
attempts to lock a binary semaphore.
sem points to an structure which specifies the semaphore to be locked.
If the semaphore is not currently locked, it becomes locked and the function returns successfully.
If the semaphore is currently locked, and condition is then the function returns with an error. If the semaphore is currently locked and
condition is zero, the function does not return until either the calling process is able to successfully lock the semaphore, or an error
condition occurs.
All calls to and by multiple processes sharing a common structure behave as if the calls were serialized.
If the structure contains any value not resulting from a call to followed by a (possibly empty) sequence of calls to and the results are
undefined. The address of an uniquely identifies the semaphore. If the structure contains any value copied from an structure at a differ-
ent address, the result is undefined.
IMPLEMENTATION NOTES
If blocked on a locked semaphore, suspends the calling process at a priority such that the process can be interrupted by a signal.
The system attempts to ignore or recover from invalid values written to the structure, but this is not guaranteed for all cases.
successfully acquires a semaphore that is locked by a process that has exited.
RETURN VALUE
returns one of the following values:
Success.
Failure.
is set to indicate the error.
ERRORS
sets to one of the following values if the corresponding condition is encountered.
was specified and the semaphore was already locked.
sem points to an structure that has been removed, or condition is invalid.
was interrupted by a signal that was caught.
The semaphore is currently locked,
condition is zero, and waiting to lock the semaphore would create a deadlock.
sem is not a properly aligned address or is otherwise an invalid pointer.
AUTHOR
was developed by HP and OSF.
SEE ALSO
msem_init(2), msem_remove(2), msem_unlock(2), mman(5).
STANDARDS CONFORMANCE
msem_lock(2)