49 lines
987 B
Groff
49 lines
987 B
Groff
.TH vilock "" "" "/rdb Command"
|
|
.PC "Lock a table before editing, unlock afterward"
|
|
\fBvilock \fItableorlist\fR
|
|
.PP
|
|
.II "table^lock while editing"
|
|
.II "vi^lock table"
|
|
.II "lock table while editing"
|
|
.II "record locking"
|
|
The command
|
|
.B vilock
|
|
stops others from editing the same file you are editing.
|
|
It locks the table, invokes the
|
|
.B vi
|
|
with which you can edit the table, then unlocks the table when you
|
|
have finished editing.
|
|
.PP
|
|
To lock
|
|
.IR tableorlist ,
|
|
.B vilock
|
|
changes its name to
|
|
\fBLOCK\fItableorlist\fR;
|
|
this is a temporary file that exists only as long as you are editing.
|
|
.B vilock
|
|
then invokes
|
|
.B vi
|
|
for \fBLOCK\fItableorlist\fR.
|
|
When you finish editing and exit from
|
|
.BR vi ,
|
|
.B vilock
|
|
moves \fBLOCK\fItableorlist\fR back to its original name.
|
|
If anyone else trys to edit
|
|
.I tableorlist
|
|
while you are editing it with
|
|
.BR vilock ,
|
|
he receives a message that the file is locked or missing.
|
|
.SH "See Also"
|
|
.B
|
|
lock,
|
|
unlock,
|
|
ve
|
|
.R
|
|
.br
|
|
COHERENT Lexicon:
|
|
.B
|
|
elvis,
|
|
vi
|
|
.R
|
|
.SO vilock
|