[Buildbot-devel] Pipe ShellCommand output to file on Windows

Dustin J. Mitchell dustin at v.igoro.us
Sun Jun 22 15:43:53 UTC 2014


On Mon, Jun 16, 2014 at 3:54 PM, Alex Escott <AE at malaspina-labs.com> wrote:
> As the title says... I have a ShellCommand step like this:
>
> Steps.append(ShellCommand(command=['xt-size.exe','libWhatever.a','--totals','>','memstats.txt']))
>
> When I run it, it gives an error:
> xt-size.exe: Warning: '>' is not an ordinary file
> xt-size.exe: 'memstats.txt': No such file
>
> I can run the command from the command line manually, that works. I've also tried a single string (.exe and args in one string) as the command parameter, still the same error.

I'm surprised this didn't help, actually.  Given a string, Buildbot
prefixes it with 'CMD.EXE /c', then puts the whole thing in a
temporary batch file and executes it.  So I'd expect a batch file
containing

CMD.EXE /c xt-size.exe libWhatever.a --totals > memstats.txt

which is exactly what Vasily suggested.  I don't understand why that
wouldn't work..

Dustin




More information about the devel mailing list