From 853cae825bb064d4c18cefd5509b30462d183c80 Mon Sep 17 00:00:00 2001 From: Fernando Brito Date: Tue, 10 Jun 2014 16:20:00 -0300 Subject: [PATCH] Redirect core output to /tmp/core_log --- endpoints/video.js | 4 ++-- endpoints/video_legenda.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/endpoints/video.js b/endpoints/video.js index 92c4b7c..2309067 100644 --- a/endpoints/video.js +++ b/endpoints/video.js @@ -44,7 +44,7 @@ function init(req, res) { /* Cria a linha de comando */ var command_line = 'vlibras_user/vlibras-core/./vlibras ' + parameters.getServiceType(req.body.servico) + ' uploads/' + id + '/' + req.files.video.name + ' 1 ' + parameters.getPosition(req.body.posicao) + ' ' + parameters.getSize(req.body.tamanho) + ' ' + - parameters.getTransparency(req.body.transparencia) + ' ' + id; + parameters.getTransparency(req.body.transparencia) + ' ' + id + '> /tmp/core_log 2>&1'; console.log(command_line); @@ -163,4 +163,4 @@ function init(req, res) { }); }; -module.exports.init = init; \ No newline at end of file +module.exports.init = init; diff --git a/endpoints/video_legenda.js b/endpoints/video_legenda.js index e3a8b4f..230ab82 100644 --- a/endpoints/video_legenda.js +++ b/endpoints/video_legenda.js @@ -56,7 +56,7 @@ function init(req, res) { var command_line = 'vlibras_user/vlibras-core/./vlibras ' + parameters.getServiceType(req.body.servico) + ' uploads/' + id + '/' + req.files.video.name + ' uploads/' + id + '/' + req.files.legenda.name + ' ' + parameters.getLanguage(req.body.linguagem) + ' ' + parameters.getPosition(req.body.posicao) + ' ' + parameters.getSize(req.body.tamanho) + ' ' + - parameters.getTransparency(req.body.transparencia) + ' ' + id; + parameters.getTransparency(req.body.transparencia) + ' ' + id + '> /tmp/core_log 2>&1'; console.log(command_line); @@ -175,4 +175,4 @@ function init(req, res) { }); }; -module.exports.init = init; \ No newline at end of file +module.exports.init = init; -- libgit2 0.21.2