Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bioinfo
datautils
Commits
a28e690d
Commit
a28e690d
authored
Nov 12, 2015
by
Holger Brandl
Browse files
continued lsf api
parent
5b838c24
Changes
1
Show whitespace changes
Inline
Side-by-side
bash/lsf_utils.sh
View file @
a28e690d
...
...
@@ -264,13 +264,14 @@ mysub(){
echo
${
jobCmd
}
>
.logs/
${
jobName
}
.cmd
echo
$@
>
.logs/
${
jobName
}
.lsfargs
echo
""
>
.logs/
${
jobName
}
.jobid // reset the
id
file
## use bsub if available, otherwise fall back to simple eval and ignore other arguments
if
[
-n
"
$(
command
-v
bsub
)
"
]
&&
[
-z
"
$LOCAL_RUN
"
]
;
then
# echo "submitting job ${jobName}"
bsub
-J
$jobName
$@
"(
$jobCmd
) 2>.logs/
${
jobName
}
.err.log 1>.logs/
${
jobName
}
.out.log"
| joblist .logs/
${
jobName
}
.jobid 2>&1
else
echo
"using eval instead of bsub for
${
jobName
}
"
echo
"using eval instead of bsub for
${
jobName
}
"
>
&2
eval
$jobCmd
2>.logs/
${
jobName
}
.err.log 1>.logs/
${
jobName
}
.out.log
fi
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment