[Buildbot-devel] Running Shell Commands

Nick Trout nick at rockstarvancouver.com
Tue May 10 02:16:11 UTC 2005


> I need to run `make allmodconfig > .config` using ShellCommand but I
keep
> getting the following errors:
> 
> command '['(make allmodconfig > .config)']' in dir
> /home/philips/projects/bigit/slave/full/build (timeout 1200 secs)
> Upon execvpe (make allmodconfig > .config) ['(make allmodconfig >
> .config)'] in environment id -1216986820:
> Traceback (most recent call last):
>   File "/usr/lib/python2.3/site-packages/twisted/internet/process.py",
> line 674, in __init__
>     os.execvpe(command, args, environment)
>   File "/usr/lib/python2.3/os.py", line 345, in execvpe
>     _execvpe(file, args, env)
>   File "/usr/lib/python2.3/os.py", line 374, in _execvpe
>     func(fullname, *argrest)
> OSError: [Errno 2] No such file or directory
> program finished with exit code 1
> 
> Any ideas?

It looks (to the untrained eye! :-) like you're not passing it in in the
correct format. The shell commands take lists of space separated
commands and arguments. First param is the command 'make' and then a
list of args.

Try doing:

	c = 'make allmodconfig > .config'.split(' ')
	ShellCommand(c[0], c[1:] ... ) # or however args work

Nick








More information about the devel mailing list