[Buildbot-devel] Command Error

Ravindra Parihar imravin at gmail.com
Thu Jun 10 12:04:09 UTC 2010


Thanks Chris,

Problem resolved :)

Cheer/
Ravi

On Thu, Jun 10, 2010 at 4:39 PM, Chris AtLee <chris at atlee.ca> wrote:

> You need to specify that the command needs to run inside a shell, e.g.
>
> command = ['bash', '-c', 'if [ -d _trial_temp ]; then sudo chown -R
> buildmaster:buildmaster _trial_temp; fi']
>
> On Thu, Jun 10, 2010 at 3:40 AM, Ravindra Parihar <imravin at gmail.com>
> wrote:
> > Hi All,
> >
> > I am running below command in master.cfg.
> >                command=[' if [ -d _trial_temp ]; then' ,'sudo', 'chown',
> > '-R','buildmaster:buildmaster','_trial_temp;', 'fi'])
> >
> > But when the buildbot 0.7.11p3 execute the command it get failed  with
> error
> > -
> > ======================
> > Upon execvpe  if [ -d _trial_temp ]; then [' if [ -d _trial_temp ];
> then',
> > 'sudo', 'chown', '-R', 'buildmaster:buildmaster', '_trial_temp;', 'fi']
> in
> > environment id 85827488
> > :Traceback (most recent call last):
> >   File "/usr/lib64/python2.4/site-packages/twisted/internet/process.py",
> > line 396, in _fork
> >     executable, args, environment)
> >   File "/usr/lib64/python2.4/site-packages/twisted/internet/process.py",
> > line 442, in _execChild
> >     os.execvpe(executable, args, environment)
> >   File "/usr/lib64/python2.4/os.py", line 350, in execvpe
> >     _execvpe(file, args, env)
> >   File "/usr/lib64/python2.4/os.py", line 379, in _execvpe
> >     func(fullname, *argrest)
> > OSError: [Errno 2] No such file or directory
> > program finished with exit code 1
> > ========================
> >
> > Please suggest what could be the error and how to resolve this error.
> >
> > Thanks,
> > Ravi
> >
> >
> >
> ------------------------------------------------------------------------------
> > ThinkGeek and WIRED's GeekDad team up for the Ultimate
> > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> > lucky parental unit.  See the prize list and enter to win:
> > http://p.sf.net/sfu/thinkgeek-promo
> > _______________________________________________
> > Buildbot-devel mailing list
> > Buildbot-devel at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/buildbot-devel
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20100610/70a0ac73/attachment.html>


More information about the devel mailing list