RFIO_RCP(3) Rfio Library Functions RFIO_RCP(3)NAME
rfio_rcp - third party copy of a file
SYNOPSIS
#include <sys/types.h>
#include "rfio_api.h"
int rfio_rcp (char *source, char *destination, int timeout);
DESCRIPTION
rfio_rcp triggers a third party copy of a file.
source specifies the physical path of the source file.
destination
specifies the physical path of the file at destination.
timeout
specifies the time after which the copy is cancelled if not completed.
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
ENOENT The source file does not exist or a component of destination prefix does not exist.
EACCES Search permission is denied on a component of the source or destination prefix or read permission is not granted on the source
file or write permission on the destination parent directory is denied.
EFAULT source or destination is a NULL pointer.
ENOSPC No space to store the new file copy.
ENAMETOOLONG The length of source or destination exceeds CA_MAXPATHLEN or the length of a path component exceeds CA_MAXNAMELEN.
SENOSHOST Host unknown.
SETIMEDOUT Has timed out.
SECOMERR Communication error.
SEE ALSO Castor_limits(4)LCG $Date: 2010-09-07 09:21:01 +0200 (Tue, 07 Sep 2010) $ RFIO_RCP(3)
Check Out this Related Man Page
RFIO_RMDIR(3) Rfio Library Functions RFIO_RMDIR(3)NAME
rfio_rmdir - remove a directory
SYNOPSIS
#include <sys/types.h>
#include "rfio_api.h"
int rfio_rmdir (const char *path);
DESCRIPTION
rfio_rmdir removes a directory if it is empty.
path specifies the logical pathname relative to the current directory or the full 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
ENOENT The named directory 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 directory and
the effective user ID of the requestor does not match the owner ID of the parent directory and
the requestor is not super-user.
EFAULT path is a NULL pointer.
EEXIST The named directory is not empty.
ENOTDIR A component of path prefix is not a directory.
EINVAL path is the current 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.
SEE ALSO Castor_limits(4), rfio_mkdir(3)AUTHOR
LCG Grid Deployment Team
LCG $Date: 2005/03/31 13:13:03 $ RFIO_RMDIR(3)
I went to a dinner party/birthday party type shindig tonight - and ended up in a rather heated debate with a bunch of closed-source (closed-minded) OS-B sysadmins. I was trying to sell open source, and the spirit of community driven OS-A, but was met by a wall of "oh well, if it's open source its... (12 Replies)
Hi,
When I try to run a script with ". "(dot space) in my home, it gives me error ".: Permission denied".
Any explanation for this behaviour?
Thanks in advance,
-Ashish (3 Replies)
I faced a problem when I tried to copy files from one directory to another using certain user although this user has r/w/x permission on source and destination directory ?? the OS is Linux-Suse 9
any help?? (2 Replies)
Hi,
i need to copy contents from source to destination with a few conditions, Please helpme out.
Sample input file
$>cat testfile.txt
/a/b/c/d | /e/f/g/d (d can be either a file or directory)
my conditions are:
check if destination is valid and if its a file or directory
if its a... (5 Replies)
Hi All,
Need your help..
I am writing one script in which I am assigning value to one variable but when i am executing it is showing error "0403-006 Execute permission denied"
below is the line of that script :
INPUT_COUNT=wc $GIF_DIR/input/VID_RIMS.DAT | awk '{print $1}'
and access... (2 Replies)
Hi,
I want to copy a file/directory ( recursively , if needed) and if destination directory does not exist create it ( with parent directory, if needed).
funcopy () {
if ; then
echo "$2 exists , copying files"
cp -r "$1" "$2"
else
echo "Directory does not exist;Create directory"
mkdir... (1 Reply)
hi frnds,
please help ... what will happen with below command if destination path does not exist on the system....
find /var/adm/cft* -mtime +1 -exec mv {} /global/ \ in unix
its remove all my files from the system from soruce file ... how is it possbile (1 Reply)
Hi all,
I am not sure whether anyone of you using XIV to copy vg from one host to another. After I managed to copy all the respective vg over to destination vg, and map all vg to destination and when come to varyonvg, I got the following error
0516-510 varyonvg: Physical volume not found for... (2 Replies)
I am using RedHat 4.4 Version Operating System.
I want to copy one file from source to destination.I don't want to give a password when I am executing the below shell script.
code:
#!/bin/bash
scp -r file.zip 192.168.1.5:/root/
Here it asking a password to enter,Is there any way give a... (2 Replies)
Dears,
I have one strange problem. When I copy file from source to destination using scp, file size decreased in destination side. I can see that copy progress is successful in source side. But when I check file size using du -sh command file size is 10 time smaller.
First I looked into... (6 Replies)
How can I have an intelligent script that will copy from source to destination directory if the file doesnt exist there or the chksum is not match.
SOURCE directory:
for i in `ls`
> do
> echo $i
> md5sum $i
> echo ""
> done
asdasda
00039a616135792fb609d04cf27aed95 asdasda
... (5 Replies)
Dear forum members,
Below is my code, but I am getting permission denied when I try to run the script. Can someone explain what I am missing. I am using Mojave and try to run script on terminal.
#!/bin/bash
read -p "amino acid: " AAA
if || || || || ||
|| || || || ||
||... (2 Replies)