07-24-2011
The unix command is "fuser". This command is of little use in this situation because the status of the file can change so quickly.
The usual method is to not permit direct editing of the file. Then have a temporary "token" file to reserve access to the common file.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
HI! My Linux box is sharing files with two Windows platforms (winXP and Win98). The Windows computers can see the Samba shares, but how do I access the Windows shares from my Linux computer? (2 Replies)
Discussion started by: jot-87
2 Replies
2. Windows & DOS: Issues & Discussions
until recently I've been using the following command successfully:
mount -t smbfs -o username=my_user_name,password=password /home/temp/ //oldserver/openexchange
To connect to a Win2000 shared folder called openexchange on a machine called //oldserver.
But as from today, I've been getting... (2 Replies)
Discussion started by: cw1972
2 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I want to copy a file from unix machine to a shared windows directory.
i tried using the ftp command but i was able to transfer the file only to my local directory.
Is there any way we can transfer/copy the files from unix to windows shared directory..........
Please help.
Thanks (5 Replies)
Discussion started by: sireesha15
5 Replies
4. Filesystems, Disks and Memory
Hi
Im working in an environment where 2 production and 2 testing unix servers are used.. All these servers share the same home directory..
how is it done
where would the home directory be located (0 Replies)
Discussion started by: raghav288
0 Replies
5. Solaris
how can I make a shared directory between two UNIX servers??? (6 Replies)
Discussion started by: mm00123
6 Replies
6. UNIX for Dummies Questions & Answers
I use User private groups, and have setup a new group 'team' and member users, and a shared directory owned by that group with permissions as follows:
drwxrwsr-x 2 holocene team 4096 2010-05-29 14:45 holoceneshardir
My objective is collaboration among group 'team' members.
... (5 Replies)
Discussion started by: holocene
5 Replies
7. Solaris
I shared from linux server a dir with nfs3,solaris mount
ok,and can tar files,but if i do ls or cp..
on mnt i have mount the nfs share
root@solaris: mnt $ touch 2
root@solaris: mnt $ ls -lh
ls: can't read ACL on .: Permission denied
root@solaris: mnt $ ls
1.tar
2
root@solaris: mnt $ cp... (4 Replies)
Discussion started by: Linusolaradm1
4 Replies
8. UNIX for Dummies Questions & Answers
Hey everyone, I have a question about comparing two files. I have two lists of files. The first list, todo.csv, lists a series of compounds my supervisor wants me to perform calculations on. The second list, done.csv, lists a series of compounds that I have already performed calculations on.... (2 Replies)
Discussion started by: Stuart Ness
2 Replies
9. Solaris
I'm having a strange issue that I'm unsure what to do with. I have a new Solaris home server that I want hard mount /home to all our servers. I've made each user's home directory a filesystem so that I can manage every user with a quota. In each one of my server vfstab files I have it set as:
... (4 Replies)
Discussion started by: mijohnst
4 Replies
10. Shell Programming and Scripting
Given a directory containing say a few thousand files,
please output a list of all the names of the files in the directory that are exactly the same, i.e. have the same contents.
func(a_directory_name) output -> {“matches”: , ... ]}
e.g. func(“/home/my/files”) where the directory... (7 Replies)
Discussion started by: anuragpgtgerman
7 Replies
usual(n) [incr Tk] usual(n)
__________________________________________________________________________________________________________________________________________________
NAME
usual - access default option-handling commands
for a mega-widget component
SYNOPSIS
usual ?tag? ?commands?
_________________________________________________________________
DESCRIPTION
The usual command is used outside of an [incr Tcl] class definition to define the usual set of option-handling commands for a component
widget. Option-handling commands are used when a component is registered with the Archetype base class via the "itk_component add" method.
They specify how the component's configuration options should be integrated into the composite option list for the mega-widget. Options
can be kept, renamed, or ignored, as described in the Archetype man page.
It is tedious to include the same declarations again and again whenever components are added. The usual command allows a standard code
fragment to be registered for each widget class, which is used by default to handle the options. All of the standard Tk widgets have usual
declarations defined in the [incr Tk] library. Similar usual declarations should be created whenever a new mega-widget class is conceived.
Only the most-generic options should be included in the usual declaration.
The tag name is usually the name of a widget class, which starts with a capital letter; however, any string registered here can be used
later with the usual command described on the Archetype man page.
If the commands argument is specified, it is associated with the tag string, and can be accessed later via itk_component add.
If only the tag argument is specified, this command looks for an existing tag name and returns the commands associated with it. If there
are no commands associated with tag, this command returns the null string.
If no arguments are specified, this command returns a list of all tag names previously registered.
EXAMPLE
Following is the usual declaration for the standard Tk button widget:
itk::usual Button {
keep -background -cursor -foreground -font
keep -activebackground -activeforeground -disabledforeground
keep -highlightcolor -highlightthickness
rename -highlightbackground -background background Background
}
Only the options that would be common to all buttons in a single mega-widget are kept or renamed. Options like "-text" that would be
unique to a particular button are ignored.
KEYWORDS
itk, Archetype, component, mega-widget
itk 3.0 usual(n)