<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi All,<br>
</p>
<p><br>
</p>
<p>I'm trying to update an old buildstep to the 'new-style'.  What I used to do was pass the stdio log line by line looking for a matching string.  Now using the 'run' method I have<br>
</p>
<p><br>
</p>
<div>    @defer.inlineCallbacks</div>
<div>    def run(self):</div>
<div>        command = self.command</div>
<div><br>
</div>
<div>        cmd = yield self.makeRemoteShellCommand(command=command, collectStdout=True, stdioLogName="stdoutLog")</div>
<div><br>
</div>
<div>        yield self.runCommand(cmd)</div>
<div><br>
</div>
<div>        defer.returnValue(cmd.results())<br>
</div>
<div><br>
</div>
<div>but I'm unsure of how or when I should parse the log and set the result.  I don't actually think I need to collect stdout but I have left it in here as I was testing out some ideas.<br>
</div>
<div><br>
</div>
<div>Many thanks for any help or pointers,<br>
</div>
<div>Hugh.<br>
</div>
<p><br>
</p>
</body>
</html>