The best relief from quoting hell is, IMHO, only using ShellCommand
to run a script file.  Makes things easier to test outside the buildbot
environment, too.

On Thu, Apr 21, 2016 at 9:58 AM, honas grael <[email protected]> wrote:
> Hi everyone,
> I am trying to use the Windows FOR /F
>
>
> Syntax
>         FOR /F ["options"] %%parameter IN (filenameset) DO command
>
>
> The option(s) must be contained within "a pair of quotes"
>
> Loop command: against a set of files - conditionally perform a command
> against each item
>
> Something along the lines of
>
> ...Shellcommand(["cmd "," For F "delims= " x"])
>
> note that the 2 paramters "delims" must be inside double quotes
>
> I have tried doing
>
> ...Shellcommand(["cmd ",r" connect to service "delims= " x"])
>
> but I keep getting errors i,e unexpected delims
>
> however when I type the command into the windows cmd shell it works fine
>
> Any idea how I can make use of this command? How should I go about escaping
> the " so that they aren't rejected in the master.cfg but still make it
> through when being executed
>
> Regards
>
> _______________________________________________
> users mailing list
> [email protected]
> https://lists.buildbot.net/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
https://lists.buildbot.net/mailman/listinfo/users

Reply via email to