Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mirrors
biopet.biopet
Commits
07304292
Commit
07304292
authored
Nov 24, 2016
by
Peter van 't Hof
Browse files
Added remove of temp file
parent
17cb67b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/BiopetCommandLineFunction.scala
View file @
07304292
...
...
@@ -249,6 +249,7 @@ object BiopetCommandLineFunction extends Logging {
try
{
val
buffer
=
new
StringBuffer
()
val
tempFile
=
File
.
createTempFile
(
"which."
,
".sh"
)
tempFile
.
deleteOnExit
()
val
writer
=
new
PrintWriter
(
tempFile
)
pre_commands
.
foreach
(
cmd
=>
writer
.
println
(
cmd
+
" > /dev/null 2> /dev/null"
))
writer
.
println
(
s
"which $executable"
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment