release notes | Book: 2.16, 3.0, 3.1, 3.2, 4.0, 4.1, 4.2 | Wiki | Q&A black_bg
Web: Multi-page, Single page | PDF: A4-size, Letter-size | eBook: epub black_bg


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

[return to top]

Listing a directory

To list the content of a dCache directory, the GSI-FTP protocol can be used;

[user] $ edg-gridftp-ls gsi

[return to top]

Checking a file exists

To check the existence of a file with GSI-FTP.

[user] $ edg-gridftp-exists gsi
[user] $ echo $?
[user] $ edg-gridftp-exists gsi
error the server sent an error response: 451 451 /pnfs/  not found
[user] $ echo $?

Use the return code

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 it is one of many possible errors.

[return to top]

Deleting files

To delete files with GSI-FTP use the edg-gridftp-rm command.

[user] $ edg-gridftp-rm gsi

This deletes the file filler_test20050811160948926780000 from the /pnfs/ using the door running on the host within the dCache cluster

[return to top]

Copying files

globus-url-copy [[command line options]] [<srcUrl>] [<destinationUrl>] ...

Copying file with globus-url-copy follows the syntax source, destination.


The following example copies the file /etc/group into dCache as the file /pnfs/

[user] $ globus-url-copy \
file://///etc/group \

Please note that the five slashes are really needed.