From 96dfcae3b9c80a6d69a93c8a517923d5ed96e21a Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 25 Nov 2010 07:49:22 +0000 Subject: iurt log path is now passed by ulri when running the iurt command through ssh --- ulri | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ulri') diff --git a/ulri b/ulri index 542c5c5..278465f 100755 --- a/ulri +++ b/ulri @@ -668,7 +668,6 @@ foreach my $prefix (sort keys %pkg_tree) { $cmd =~ s!__DIR__!$path/$prefix!g; $cmd =~ s!__TARGET__!$target!g; $cmd =~ s!__PACKAGER__!$user!g; - $cmd =~ s!__IURTLOGDIR__!$prefix_dir/log/!g; my $media_to_add; if (ref $config->{media}{$target}{$media}) { @@ -680,7 +679,7 @@ foreach my $prefix (sort keys %pkg_tree) { $cmd =~ s!__MEDIA__!$media_to_add!g; plog('DEBUG', "Build $pkgs"); - ssh($remote, "$cmd $pkgs > $temp &"); + ssh($remote, "\'echo PID=\$\$; exec $cmd $pkgs &>$prefix_dir/log/botcmd.\$(date +%s).\$(hostname -s).log\' > $temp &"); # wait 10 seconds or until we have the log file # plus 20 seconds if it timeouts. -- cgit v1.2.1