GSI FTP

D-Cache provides a GSI FTP door, which is in effect a GSI authenticated FTP access point to D-Cache

ls

To list the content of a D-cache Directory GSI FTP can be used

edg-gridftp-ls gsiftp://dev07.gridpp.rl.ac.uk/pnfs/gridpp.rl.ac.uk/data/dteam/

exists

To check the existence of a file with GSI FTP.

edg-gridftp-exists gsiftp://dev07.gridpp.rl.ac.uk/pnfs/gridpp.rl.ac.uk/data/dteam/filler_test20050819130209790873000
echo $?
0
edg-gridftp-exists gsiftp://dev07.gridpp.rl.ac.uk/pnfs/gridpp.rl.ac.uk/data/dteam/filler_test200508191302097908730002
error the server sent an error response: 451 451 /pnfs/gridpp.rl.ac.uk/data/dteam/filler_test200508191302097908730002  not found
echo $?
1

Please note the echo $? show the return code of the last run application. The error message returned from the client this should not be scripted against as its one of many possible errors.

rm

To delete files with GSI FTP use the following command.

edg-gridftp-rm gsiftp://dev01.gridpp.rl.ac.uk/pnfs/gridpp.rl.ac.uk/data/dteam/filler_test20050811160948926780000

Which deletes the file filler_test20050811160948926780000 from the "dteam" VO on the host dev01.gridpp.rl.ac.uk within the domain gridpp.rl.ac.uk.