Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xrdcopy: support reading from STDIN #190

Closed
jmuf opened this issue Jan 12, 2015 · 1 comment
Closed

xrdcopy: support reading from STDIN #190

jmuf opened this issue Jan 12, 2015 · 1 comment

Comments

@jmuf
Copy link
Contributor

jmuf commented Jan 12, 2015

We have a use case where we would like to pipe (compressed/encrypted) data to xrdcopy without going via a local temp file first. While "xrdcopy" can pipe out to STDOUT, it apparently does not support reading from STDIN - could this be changed? (of course, things such as transfer checksumming or preallocating on the receiver won't work).

Tests done:

  • cat /etc/group | xrdcopy -d 2 - root://eospps//eos/pps/users/iven/test-stdin

    => gives an empty file on the destination, no error.

  • cat /etc/group | xrdcopy -d 2 /dev/stdin root://eospps//eos/pps/users/iven/test-dev-stdin

xrdcopy: Operation not supported processing /dev/stdin

  • cat /etc/group | xrdcp -d 2 - root://eospps//eos/pps/users/iven/test-stdin-xrdcp

xrdcp: Using stdin as a source is disallowed.

  • cat /etc/group | xrdcp -d 2 /dev/stdin root://eospps//eos/pps/users/iven/test-dev-stdin-xrdcp

xrdcp: Operation not supported processing /dev/stdin

@ljanyst
Copy link
Contributor

ljanyst commented Jan 13, 2015

This works fine. Use newer version.

]==> cat /etc/group | xrdcp - root://localhost//tmp/test
[1.149kB/0B][100%][==================================================][0B/s]
]==> md5sum /tmp/test /etc/group
5abb44f8dedb48aed937e44f62dda810  /tmp/test
5abb44f8dedb48aed937e44f62dda810  /etc/group

@ljanyst ljanyst closed this as completed Jan 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants