File: nsrm.man

package info (click to toggle)
lfc-postgres 1.7.4.7-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 13,676 kB
  • ctags: 10,779
  • sloc: ansic: 146,136; sh: 13,176; perl: 11,142; python: 5,529; cpp: 5,113; sql: 1,790; makefile: 861; fortran: 113
file content (74 lines) | stat: -rw-r--r-- 1,688 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
.\" @(#)$RCSfile: nsrm.man,v $ $Revision: 1.1.1.1 $ $Date: 2002/10/18 11:57:00 $ CERN IT-PDP/DM Jean-Philippe Baud
.\" Copyright (C) 1999-2002 by CERN/IT/PDP/DM
.\" All rights reserved
.\"
.TH NSRM 1 "$Date: 2002/10/18 11:57:00 $" CASTOR "Cns User Commands"
.SH NAME
nsrm \- remove CASTOR files or directories in the name server
.SH SYNOPSIS
.B nsrm
.RB [ -f ]
.RB [ -i ]
.IR filename ...
.LP
.B nsrm
.RB [ -f ]
.RB [ -i ]
.B -r
.IR dirname ...
.SH DESCRIPTION
.B nsrm
removes CASTOR files or directories in the name server.
For directories either
.B -r
or
.B -R
must be present.
For regular files, it calls
.B Cns_unlink
while for directories, it calls
.BR Cns_rmdir .
.LP
This requires write permission in the parent directory and the file itself.
If write permission on an entry is denied, the standard input is a terminal and
the
.B -f
option is not given, the prompt "override write protection" appears and if the
response is not
.BR y ,
the entry is not deleted.
Entries directly under a protected directory are never deleted.
.TP
.I path
specifies the CASTOR pathname.
If
.I path
does not start with
.BR / ,
it is prefixed by the content of the
.B CASTOR_HOME
environment variable.
.SH OPTIONS
The following options are supported:
.TP
.B -f
Do not give an error message if the file/directory does not exist.
.TP
.B -i
Request acknowledge before removing each individual entry.
.TP
.B -R
Recursive mode (equivalent to
.BR -r ).
.TP
.B -r
Recursive mode.
.SH EXIT STATUS
This program returns 0 if the operation was successful or >0 if the operation
failed.
.SH SEE ALSO
.BR Castor_limits(4) ,
.BR Cns_rmdir(3) ,
.B Cns_unlink(3)
.SH AUTHOR
\fBCASTOR\fP Team <castor.support@cern.ch>