SUPPORT commands


PROGRAM NAME

lockingvi - provide locking for vi edits

DESCRIPTION

lockingvi is a perl script around the vi editor, which provides primitive locking. This prevents the same file from being edited more than once at the same time, by the same person or different people working in the same account.

If you try to edit a file which is already being edited by you or someone else, you will get a message:

    <file> is being edited [by fred]

The locking information is kept in a regular text file: $HOME/.vilock. When you edit a file, it is locked using $USER, unless you have set the environment variable VILOCKNAME. Different people working under the same username can set the VILOCKNAME variable so you know who is editing a file that is locked.

REQUIRED ARGUMENTS

none

OPTIONAL ARGUMENTS

none

EXAMPLES

SEE ALSO

vi(1), perl

RESTRICTIONS

The lockingvi script should not be installed under the name vi , since it searches your path looking for `vi', and assumes the first one it finds is the Real Thing.

REFERENCES

COPYRIGHT

Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.