|
Re: Running Shell Commands: msg#00026python.buildbot.devel
> 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 ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [PATCH] Initial cogito support: 00026, Brian Warner |
|---|---|
| Next by Date: | Re: Web server on master: 00026, Brian Warner |
| Previous by Thread: | Running Shell Commandsi: 00026, Brandon Philips |
| Next by Thread: | Re: Running Shell Commands: 00026, Brandon Philips |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |