Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
StashCache
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Salman Djingueinabaye
StashCache
Commits
241b72c8
Commit
241b72c8
authored
10 years ago
by
olsona
Browse files
Options
Downloads
Patches
Plain Diff
explanation
parent
79ec9e25
Branches
Branches containing commit
Tags
v1.0.4
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
testingScript.sh
+6
-6
6 additions, 6 deletions
testingScript.sh
with
6 additions
and
6 deletions
testingScript.sh
+
6
−
6
View file @
241b72c8
#!/bin/bash
#!/bin/bash
source
/cvmfs/oasis.opensciencegrid.org/osg/modules/lmod/5.6.2/init/bash
source
/cvmfs/oasis.opensciencegrid.org/osg/modules/lmod/current/init/bash
module load xrootd/4.1.1
module load stashcp
echo
"
$(
date
)
: Loaded XrootD"
stashcp
--closest
source
./setStashCache.sh
echo
"
$(
date
)
: Got prefix"
arrFiles
=
$(
echo
$1
|
tr
","
"
\n
"
)
arrFiles
=
$(
echo
$1
|
tr
","
"
\n
"
)
for
f
in
$arrFiles
;
do
for
f
in
$arrFiles
;
do
echo
$f
echo
$f
bash ./
stashcp
-d
-s
$f
-l
$2
2>&1
stashcp
-d
-s
$f
-l
$2
2>&1
file
=
$(
echo
$f
| rev |
cut
-d
'/'
-f1
| rev
)
file
=
$(
echo
$f
| rev |
cut
-d
'/'
-f1
| rev
)
# rm $2/$file
# rm $2/$file
f1
=
$(
echo
$f
|
cut
-d
'/'
-f4-
)
f1
=
$(
echo
$f
|
cut
-d
'/'
-f4-
)
...
@@ -28,3 +26,5 @@ for f in $arrFiles; do
...
@@ -28,3 +26,5 @@ for f in $arrFiles; do
printf
"WGET of
$file
failed.
\n
"
printf
"WGET of
$file
failed.
\n
"
fi
fi
done
done
#Pulls a file using stashcp first, then pulls the same file using WGET. Results from WGET are printed out; results from STASHCP are available on Hadoop node.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment