09-30-2008
Hi Jim,
I have a similar requirement which is basically to detect whether a file ie being locked before I can go and modify it. Is there any possible and simple way that I can check that the file is not being locked by another process. thanks a lot.
Harby.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
Does anyone know what happens when two processes are simultaneously trying to write to a single file in UNIX (AIX)?
Cheers (1 Reply)
Discussion started by: penfold
1 Replies
2. UNIX for Dummies Questions & Answers
Hi...
after unlock my computer from lock,
all telnet windows which i opened previously are closing automaticaly...
i hope u understand....plz give solution... (1 Reply)
Discussion started by: venkatramana
1 Replies
3. Linux
Hi There,
I want to make sure that kmem_cache_alloc is not called concurrently with kmem_cache_destroy on module exit and I want be able to use GFP_KERNEL for the kmem_cache_alloc calls.
Would a read/write lock be good fro this purpose or is there another method I should be using?
Regards,... (0 Replies)
Discussion started by: Brendan Kennedy
0 Replies
4. UNIX for Dummies Questions & Answers
First off, let me start by saying that I am a total rookie when it comes to Unix so I will do my best to explain the situation.
BACKGROUND:We are running AIX and using a third party Inventory Management software called Acclaim. My main interface terminal is just a "dummy" terminal hooked up to... (1 Reply)
Discussion started by: sstaszak11
1 Replies
5. Shell Programming and Scripting
I have a shell script.
How can use some kind of locking mechanism to ensure that the script is not being executed by two people
at the same time? (3 Replies)
Discussion started by: tjay83
3 Replies
6. Shell Programming and Scripting
Hello everyone
Im sure this has been asked lots of times before, but after endless searching i cant find what i need.
How can i make a bash script unreadable to all, including root, but still executable, im not worried about editing it again etc... , is there a way to convert it or something, i... (5 Replies)
Discussion started by: dave123
5 Replies
7. UNIX for Advanced & Expert Users
i am working on a device runnin on linux....i have configured the samba server in the device such that my windows PC can access a shared folder in the device. Also in the device i am runnin some programs which access the files in this shared folder. What i want to know is whether there is any way i... (1 Reply)
Discussion started by: abhinx
1 Replies
8. Programming
Hi,
In my application,I need to monitor the devices connected through serial port in solaris sparc 9 OS.I used c and java code for it and I am able to do the same but the problem comes when I restart the system and the open my application and try to monitor it.but I m unable to monitor the... (2 Replies)
Discussion started by: smartgupta
2 Replies
9. Linux
hi,
we are getting filesystem locking issue very frequently. we are using linux rhel 5.5. our filesystem type is gfs2 where we are facing locking issue and unix admin team reboots server to over come with this issue. suddenly we used to face slowness on server and server gets hung. after that... (1 Reply)
Discussion started by: anshu ranjan
1 Replies
10. Red Hat
Hi List,
I'm sure this has been done before and there must be several ways to skin the cat on this topic. What I am trying to achieve is set up user accounts for use with SFTP based on the standard OpenSSH protocol. And I want to be able to lock them down so that they cannot browse outside of... (2 Replies)
Discussion started by: landossa
2 Replies
LEARN ABOUT X11R4
hal-is-caller-locked-out
HAL-IS-CALLER-LOCKED-OUT(1) General Commands Manual HAL-IS-CALLER-LOCKED-OUT(1)
NAME
hal-is-caller-locked-out - determine if a caller is locked out
SYNOPSIS
hal-is-caller-locked-out [options]
DESCRIPTION
hal-is-caller-locked-out determines if a specific caller is locked out of a specific D-Bus interface on a specific device. For more infor-
mation about both the big picture and specific HAL properties, refer to the HAL spec which can be found in
/usr/local/share/doc/hal/spec/hal-spec.html depending on the distribution.
OPTIONS
The following options are supported:
--udi The UDI (Unique Device Identifier) of the device object.
--interface
The name of the interface to check for.
--caller
The unique D-Bus name on the system bus of the caller.
--help Print out usage.
--version
Print the version.
RETURN VALUE
If the given process is locked out or an error occurs, this program exits with exit code 1. Otherwise it exits with exit code 0. Note that
only the super user (root) or other privileged users can use this tool.
BUGS
Please send bug reports to either the distribution or the HAL mailing list, see http://lists.freedesktop.org/mailman/listinfo/hal on how to
subscribe.
SEE ALSO
hald(8), lshal(1), hal-get-property(1), hal-set-property(1), hal-find-by-property(1), hal-find-by-capability(1)
AUTHOR
Written by David Zeuthen <david@fubar.dk> with a lot of help from many others.
HAL-IS-CALLER-LOCKED-OUT(1)