Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| public:grid:srmcp_pipes [2011-02-01 20:33] – Joeri van Leeuwen | public:grid:srmcp_pipes [2017-03-08 15:27] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| For speed, we would like to do this tar on the machine that holds the original data (an lse node), and send this tar file through a lexar to the grid light path, without touching the (relatively slow) lexar disk. | For speed, we would like to do this tar on the machine that holds the original data (an lse node), and send this tar file through a lexar to the grid light path, without touching the (relatively slow) lexar disk. | ||
| - | To write to the Grid, use globus-url-copy, | + | To write to the Grid, use globus-url-copy, |
| # To store to the Grid one need to use globus-url-copy | # To store to the Grid one need to use globus-url-copy | ||
| Line 14: | Line 14: | ||
| set GSIFTPCP=" | set GSIFTPCP=" | ||
| set SRMSSH=" | set SRMSSH=" | ||
| + | | ||
| # Our data directory on the Grid: | # Our data directory on the Grid: | ||
| set GSIFTPDIR=gsiftp:// | set GSIFTPDIR=gsiftp:// | ||
| + | | ||
| # In this case, read OBSID from the script input | # In this case, read OBSID from the script input | ||
| set OBSID=$1 | set OBSID=$1 | ||
| set FILE=/ | set FILE=/ | ||
| - | + | | |
| - | # Make named pipe, wait 2 sec, then start transfer | + | # Tar data dir (named $OBSID), pipe to ssh and make named pipe on lexar |
| - | tar -cp ${ID} | ${SRMSSH} " | + | tar -cp ${OBSID} | ${SRMSSH} " |
| + | # wait 2 sec, then start transfer | ||
| sleep 2 | sleep 2 | ||
| ${SRMSSH} " | ${SRMSSH} " | ||