[Buildbot-devel] Running Shell Commands
Brian Warner
warner-buildbot at lothar.com
Tue May 10 08:20:39 UTC 2005
> I need to run `make allmodconfig > .config` using ShellCommand but I keep
> getting the following errors:
It isn't clear from the traceback how you're specifying your command (because
the command gets logged a bit weirdly). ShellCommand takes the command in two
forms.
1: If you provide a list of strings, they will be used directly as the
argv array (this lets you pass arguments with spaces in them, but does
not allow you to use shell meta-characters like the ">" you're using).
2: If instead you provide a single string, the argv array will be
["/bin/sh", "-c", COMMAND], which means the shell will split COMMAND on
spaces (and look for quotes, backslashes, etc). The second form *does*
let you use shell metacharacters.
The array form is preferred, but of course there are always places where you
need to use the second. This is one of those cases. You should create your
ShellCommand with:
s(ShellCommand, command="make allmodconfig > .config")
If that still causes problems, let me know.
thanks,
-Brian
More information about the devel
mailing list