[Mageia-sysadm] [136] iurt log path is now passed by ulri when running the iurt command through ssh

root at mageia.org root at mageia.org
Thu Nov 25 08:49:23 CET 2010


Revision: 136
Author:   blino
Date:     2010-11-25 08:49:22 +0100 (Thu, 25 Nov 2010)
Log Message:
-----------
iurt log path is now passed by ulri when running the iurt command through ssh

Modified Paths:
--------------
    build_system/iurt/trunk/ulri

Modified: build_system/iurt/trunk/ulri
===================================================================
--- build_system/iurt/trunk/ulri	2010-11-24 23:03:07 UTC (rev 135)
+++ build_system/iurt/trunk/ulri	2010-11-25 07:49:22 UTC (rev 136)
@@ -668,7 +668,6 @@
 		$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 @@
 		$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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101125/b1665aa3/attachment.html>


More information about the Mageia-sysadm mailing list