Commit 853cae825bb064d4c18cefd5509b30462d183c80
Committed by
libras
1 parent
2d351e61
Exists in
master
and in
1 other branch
Redirect core output to /tmp/core_log
Showing
2 changed files
with
4 additions
and
4 deletions
Show diff stats
endpoints/video.js
| ... | ... | @@ -44,7 +44,7 @@ function init(req, res) { |
| 44 | 44 | /* Cria a linha de comando */ |
| 45 | 45 | var command_line = 'vlibras_user/vlibras-core/./vlibras ' + parameters.getServiceType(req.body.servico) + ' uploads/' + id + '/' + |
| 46 | 46 | req.files.video.name + ' 1 ' + parameters.getPosition(req.body.posicao) + ' ' + parameters.getSize(req.body.tamanho) + ' ' + |
| 47 | - parameters.getTransparency(req.body.transparencia) + ' ' + id; | |
| 47 | + parameters.getTransparency(req.body.transparencia) + ' ' + id + '> /tmp/core_log 2>&1'; | |
| 48 | 48 | |
| 49 | 49 | console.log(command_line); |
| 50 | 50 | |
| ... | ... | @@ -163,4 +163,4 @@ function init(req, res) { |
| 163 | 163 | }); |
| 164 | 164 | }; |
| 165 | 165 | |
| 166 | -module.exports.init = init; | |
| 167 | 166 | \ No newline at end of file |
| 167 | +module.exports.init = init; | ... | ... |
endpoints/video_legenda.js
| ... | ... | @@ -56,7 +56,7 @@ function init(req, res) { |
| 56 | 56 | var command_line = 'vlibras_user/vlibras-core/./vlibras ' + parameters.getServiceType(req.body.servico) + ' uploads/' + id + '/' + |
| 57 | 57 | req.files.video.name + ' uploads/' + id + '/' + req.files.legenda.name + ' ' + parameters.getLanguage(req.body.linguagem) + |
| 58 | 58 | ' ' + parameters.getPosition(req.body.posicao) + ' ' + parameters.getSize(req.body.tamanho) + ' ' + |
| 59 | - parameters.getTransparency(req.body.transparencia) + ' ' + id; | |
| 59 | + parameters.getTransparency(req.body.transparencia) + ' ' + id + '> /tmp/core_log 2>&1'; | |
| 60 | 60 | |
| 61 | 61 | console.log(command_line); |
| 62 | 62 | |
| ... | ... | @@ -175,4 +175,4 @@ function init(req, res) { |
| 175 | 175 | }); |
| 176 | 176 | }; |
| 177 | 177 | |
| 178 | -module.exports.init = init; | |
| 179 | 178 | \ No newline at end of file |
| 179 | +module.exports.init = init; | ... | ... |