![]() |
|
|||||||
| Home | Forums | Register | Rules & FAQ | Donate | Members List | Search | Today's Posts | Mark Forums Read |
| HP-UX Post questions here if you know that only an HP-UX expert can help. |
![]() |
|
|
Submit Tools | Thread Tools | Search this Thread | Display Modes |
|
|||
|
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? |
| Forum Sponsor |
|
|
|
|||
|
At least, I could say that ls command is not really helpful.
But, you can try atime, mtime and ctime to find recently accessed files. ![]() lsof could help also. Good luck. |
| Forum Sponsor |
|
|
|
|||
|
lsof on HPUX is called fuser. It does not report locked files. In order to find locked files, you have to open() files then try lockf() in C code.
AFAIK HPUX systems only have mandatory file locking on Regular files with the file mode of S_ENFMT. What are your trying to accomplish? |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SCP / SFTP successful but locks out target account | b0bbins | UNIX for Advanced & Expert Users | 4 | 03-27-2008 01:50 PM |
| Checking/ Releasing File Locks in Solaris | teenu18 | SUN Solaris | 0 | 01-10-2008 01:47 AM |
| Reading file names from a file and executing the relative file from shell script | anushilrai | Shell Programming and Scripting | 4 | 03-10-2006 03:25 AM |
| Read/write locks within and between processes. Can you help? | adamb | High Level Programming | 3 | 02-13-2006 10:35 AM |
| "File in use" - how to identify locks on this file and release them? | vadimsf | UNIX for Dummies Questions & Answers | 1 | 09-05-2003 02:10 PM |