Commit 9028939b authored by lcottret's avatar lcottret

run.stderr -> error

parent 8529f45d
......@@ -24,7 +24,7 @@ sub LaunchAnalysis {
'message' => 'Unknown error'
);
#print STDERR "DEBUG $userid\n";
print STDERR "DEBUG User Id : $userid\n";
if ( defined $userid ) {
......@@ -54,6 +54,8 @@ sub LaunchAnalysis {
"$FindBin::RealBin/../bin/int/bbric_orthomcl-companion.pl --verbose --outdir=$outdir --analysis_cfg=$outdir/analysis.json";
my $ret = system("(nohup $cmd > $outdir/log ) 2> $outdir/error");
print STDERR "[DEBUG] cmd : $cmd\n";
if ( $? == -1 ) {
%h_param = (
'success' => 0,
......@@ -65,7 +67,7 @@ sub LaunchAnalysis {
%h_param = (
'success' => 0,
'message' => "failed to execute:<pre>"
. &Cat( "$outdir/run.stderr" . '</pre>' )
. &Cat( "$outdir/error" . '</pre>' )
);
}
else {
......@@ -86,6 +88,8 @@ sub LaunchAnalysis {
# Liste les analyses à partir du repertoire de l'utilisateur
#
sub ListAnalyses {
print STDERR "DEBUG ListAnalysis\n";
my $o_webbuilder = shift;
......@@ -129,15 +133,15 @@ sub ListAnalyses {
my $out_url = $tmp_url . "/" . $md5;
if ( &MODE_TEST == 1 ) {
$out_dir =
$O_CONF->Get('portal_install_dir')
. "/site/data/examples/results/";
$out_url =
$O_CONF->Get("portal_web_server") . "/"
. $O_CONF->Get("portal_http_root")
. "/site/data/examples/results/";
}
# if ( &MODE_TEST == 1 ) {
# $out_dir =
# $O_CONF->Get('portal_install_dir')
# . "/site/data/examples/results/";
# $out_url =
# $O_CONF->Get("portal_web_server") . "/"
# . $O_CONF->Get("portal_http_root")
# . "/site/data/examples/results/";
# }
# liste les repertoires dans le repertoire de l'utilisateur
foreach my $subdir ( glob "$out_dir/*" ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment