LFC-RM(1) LFC User Commands LFC-RM(1)NAME
lfc-rm - remove LFC files or directories in the name server
SYNOPSIS
lfc-rm [-f] [-i] filename...
lfc-rm [-f] [-i] -r dirname...
DESCRIPTION
lfc-rm removes LFC files or directories in the name server. For directories either -r or -R must be present. For regular files, it calls
lfc_unlink while for directories, it calls lfc_rmdir.
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 -f option is not given, the prompt "override write protection" appears and if the response is not y, the entry is not
deleted. Entries directly under a protected directory are never deleted.
path specifies the LFC pathname. If path does not start with /, it is prefixed by the content of the LFC_HOME environment variable.
OPTIONS
The following options are supported:
-f Do not give an error message if the file/directory does not exist.
-i Request acknowledge before removing each individual entry.
-R Recursive mode (equivalent to -r).
-r Recursive mode.
EXIT STATUS
This program returns 0 if the operation was successful or >0 if the operation failed.
SEE ALSO Castor_limits(4), lfc_rmdir(3), lfc_unlink(3)AUTHOR
LCG Grid Deployment Team
LFC $Date: 2002/10/18 11:57:00 $ LFC-RM(1)
Check Out this Related Man Page
LFC_UNLINK(3) LFC Library Functions LFC_UNLINK(3)NAME
lfc_unlink - remove a LFC file entry in the name server
SYNOPSIS
#include <sys/types.h>
#include "lfc_api.h"
int lfc_unlink (const char *path)
DESCRIPTION
lfc_unlink removes a LFC file entry in the name server.
path specifies the logical pathname relative to the current LFC directory or the full LFC pathname.
RETURN VALUE
This routine returns 0 if the operation was successful or -1 if the operation failed. In the latter case, serrno is set appropriately.
ERRORS
EPERM path is a directory.
ENOENT The named file does not exist or is a null pathname.
EACCES Search permission is denied on a component of the path prefix or write permission is denied on the parent directory or the
parent has the sticky bit S_ISVTX set and
the effective user ID of the requestor does not match the owner ID of the file and
the effective user ID of the requestor does not match the owner ID of the directory and
the file is not writable by the requestor and
the requestor does not have ADMIN privilege in the Cupv database.
EFAULT path is a NULL pointer.
EEXIST File has replicas.
ENOTDIR A component of path prefix is not a directory.
ENAMETOOLONG The length of path exceeds CA_MAXPATHLEN or the length of a path component exceeds CA_MAXNAMELEN.
SENOSHOST Host unknown.
SENOSSERV Service unknown.
SECOMERR Communication error.
ENSNACT Name server is not running or is being shutdown.
SEE ALSO Castor_limits(4), lfc_chdir(3), lfc_rmdir(3), Cupvlist(1)AUTHOR
LCG Grid Deployment Team
LFC $Date: 2005/06/30 08:34:03 $ LFC_UNLINK(3)
This may have a simple answer, but I have not been able to find it!
I need to have 20 protected directories. Each directory having a unique user with access.
I need to have a main link on the web page that requests the username and password. Once entered it eill send the user to their... (2 Replies)
I'm developing a generic script to catenate all files found in a given directory.
The problem I've got is that the depth of the given directory is unknown, so I end up with some catenated directories. My unix isn't that hot and I'm at a loss.
Heres an extract from the script
cd $1
for i in... (4 Replies)
I am having a client/server application which will download files from server. If server has directories, it will create directories/sub directories and then download files. In this process, I observed that number of open files are more than 400 (which is approxmately same as number of dir/subdir... (1 Reply)
Hi,
i am having following directory structure
Folder1
-> Folder2
-> Folder3
Folder4
Folder5
Now i am at top level and want to assign write permission to all the folder & files in it.
i am... (3 Replies)
Hi,
I want to remove a directory recursively except the inside directories calles .SYNC (designsync dirs) I am looking for something like:
\rm -rf < find . * | grep -v .SYNC
The find works ok but I do not know how to redirect it.
Please help.
Regards,
Ziv (1 Reply)
I want to be able to get all the directories in a path into a variable array, BUT if there ARE NO directories I want the Variable to be NULL and not echo any error message!
If there ARE directories, this will get the list of the directories whose name begins with the string "20":... (6 Replies)
Does anyone have any idea of how I can make something like the code below run recursively?
I'll run it on a tree of directories all with different names and all containing a sequence of .dpx files. I've tried to do it using find and exec but can't get it to work right.
What it needs to do is... (4 Replies)
Hi All,
The script below read the path and searches for the directories/subdirectories and for the files. If files are found in the sub directories then read the content of the all files and put the content in csv(comma delimted) format and the call the write to xml function to write the
std... (1 Reply)
Is there a way to use the find command to recursively scan directories for files greater than 1Gb in size and print out the directory path and file name only?
Thanks in advance. (6 Replies)
I have searched this quite a long time but couldn't find the right method for me to use. I need to assign read write permission to the user for specific directories and it's sub directories and files. I do not want to use ACL. This is for Solaris. Please help. (1 Reply)