[users at bb.net] Running ShellCommand on windows

Vladimir Rutsky rutsky.vladimir at gmail.com
Tue Feb 23 22:44:18 UTC 2016


Hi!

On 24.02.2016 01:13, honas grael wrote:
> Hello,
> I'm running buildbot on windows 7, these are my first steps, so far 
> I've followed the tutorials and they've been quite ok.
> I am struggling a little with ShellCommand, I am trying to run an 
> executable from the commandline and pass it a parameter.
>
> so from the command line in windows I would type
>
> C:\Path\To\MyExecutable.exe fileparam1.txt
>
> to do this I have a step as follows:
> f.addStep(steps.ShellCommand(command=["C:\Path\To\MyExecutable.exe", 
> "fileparam1.txt"]))
>
> But I keep getting startCommand errors.
> Am I using the shell command correctly here. I'm sure I'm missing 
> something very obvious here
>
> Regards
>
>
> _______________________________________________
> users mailing list
> users at buildbot.net
> https://lists.buildbot.net/mailman/listinfo/users

Do you escape backslashes in path?

I.e. instead of

     command="C:\Path\To\MyExecutable.exe"

should be

     command="C:\\Path\\To\\MyExecutable.exe"

or, more preferable,


     command=r"C:\Path\To\MyExecutable.exe"

If this is not the problem, can you post logs/exceptions/errors that you 
see when running such build?

--
Vladimir Rutsky

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20160224/40f5645c/attachment.html>


More information about the users mailing list