Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

lfc-rm(1) [debian man page]

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)
Man Page

13 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Multiple protected directories

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)
Discussion started by: ericg
2 Replies

2. Filesystems, Disks and Memory

Recursive file processing

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)
Discussion started by: k_mufasa
4 Replies

3. UNIX for Advanced & Expert Users

Number of open files (Dir's) how to close?

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)
Discussion started by: satyam90
1 Replies

4. Shell Programming and Scripting

matching the content of two files in different directories

hi I need to match the content of two files in different directories line by linee. if match not found then make the entry in log file. (2 Replies)
Discussion started by: manish.s
2 Replies

5. Shell Programming and Scripting

Recursive functions in Unix

Hi Guys, Is there a way to write a recursive function in unix? Thanks for your help in advance, Regards, Magesh. (1 Reply)
Discussion started by: mac4rfree
1 Replies

6. Shell Programming and Scripting

Giving write permission to multiple directories

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)
Discussion started by: sarbjit
3 Replies

7. UNIX for Dummies Questions & Answers

Recursive remove files with exception

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)
Discussion started by: zivsegal
1 Replies

8. Shell Programming and Scripting

How to list Matching Directories OR NULL w/o error message?

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)
Discussion started by: pgorbas
6 Replies

9. UNIX for Dummies Questions & Answers

Recursive file organization?

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)
Discussion started by: scribling
4 Replies

10. Shell Programming and Scripting

Recursive file processing from a path and printing output in a file

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)
Discussion started by: Optimus81
1 Replies

11. UNIX for Dummies Questions & Answers

Recursive Find on file size

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)
Discussion started by: jimbojames
6 Replies

12. UNIX for Dummies Questions & Answers

Recursive remove files

(8 Replies)
Discussion started by: spirospap
8 Replies

13. Solaris

Giving read write permission to user for specific directories and sub directories.

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)
Discussion started by: blinkingdan
1 Replies