Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 18790 invoked from network); 13 Aug 2008 07:25:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Aug 2008 07:25:34 -0000 Received: (qmail 98209 invoked by uid 500); 13 Aug 2008 07:25:21 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 98182 invoked by uid 500); 13 Aug 2008 07:25:21 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 98163 invoked by uid 99); 13 Aug 2008 07:25:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Aug 2008 00:25:21 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [209.191.106.50] (HELO web39704.mail.mud.yahoo.com) (209.191.106.50) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 13 Aug 2008 07:24:22 +0000 Received: (qmail 32435 invoked by uid 60001); 13 Aug 2008 07:23:49 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Mailer:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Message-ID; b=hs54yMkdRsW4gp30nGorUMGdx2YJSe9SnENUlkjURVQCl0WG0D7wTsPuev0tRJkzLbt3DWq6Gtk1FXaAOR7e+Mh6IJkKKK2XWioYZ46Kcha8ZsBJy8uMQDILBsfz1QTT5FyFqKzl5JjJ/ltLKNl9vlfNfUicXKy00Y5DR8+DH0o=; Received: from [80.152.25.60] by web39704.mail.mud.yahoo.com via HTTP; Wed, 13 Aug 2008 00:23:49 PDT X-Mailer: YahooMailWebService/0.7.218 Date: Wed, 13 Aug 2008 00:23:49 -0700 (PDT) From: Hans Schwaebli Reply-To: hans_schwaebli@yahoo.com Subject: sshexec and logging To: Ant Users List In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-796418098-1218612229=:32424" Message-ID: <428130.32424.qm@web39704.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org --0-796418098-1218612229=:32424 Content-Type: text/plain; charset=us-ascii I do Ant scripts for building and testing a application. Builds are done with CruiseControl on a Unix machine. I have to run the tests on windows, which is why in the build script the stuff is checked out on windows and build there. But the controlling Ant scripts are on the Unix machine. So I need SSHEXEC task to call ant from the Unix machine on the Windows machine. This works so far, but there is a issue with logging. If I execute with SSHEXEC then its kind of black hole concerning logging from the viewpoint of CruiseControl. I cannot see what happens live because the scripts are run elsewhere. I can redirect the output to a file. But on windows it flushes it only when the target is finished. If something gets stuck, I would see no logging. Of course I could use tee.exe from Cygwin and log it on console too. But do you smell the code smell? It is also ugly because the log files need to be copied from one computer to another with SCP task. All this seems much complicated for just simply wanting to log a bit which one normaly gets for free. The SSHEXEC task has a output property. But I don't get the actual remote output but much less or nothing. How can this be solved? The best would be if I can run remote commands and get live logging inside the controlling Ant scripts so that I can see what is happening while the build runs on the CruiseControl console or on its Dashboard. I hope I have described the issue so that it becomes clear, what my problems are. --0-796418098-1218612229=:32424--