<div dir="ltr">Thanks guys. Really appreciate it. Will give it a try next week.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 1, 2016 at 7:35 PM, Greg MacDonald <span dir="ltr"><<a href="mailto:gmacdonald@trionworlds.com" target="_blank">gmacdonald@trionworlds.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Honas,<br>
<br>
Try it without the /c. taskkill and timeout are a executables so I don't think you need the /c form.<br>
<br>
Isn't it funny how visual studio doesn't even work well with itself? :) This works for me:<br>
<br>
command=['taskkill', '/f', '/im', 'mspdbsrv.exe'],<br>
<br>
In case you need to use /c for something:<br>
<br>
command=['cmd.exe', '/c', 'del /s *.pak *.key *.cfg *.manifest *.pak.solid']<br>
<br>
Notice the last string isn't broken up so everything after the /c will be quoted.<br>
<span class="HOEnZb"><font color="#888888"><br>
-Greg<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
-----Original Message-----<br>
From: users [mailto:<a href="mailto:users-bounces@buildbot.net">users-bounces@buildbot.net</a>] On Behalf Of Dan Kegel<br>
Sent: Friday, April 01, 2016 8:57 AM<br>
To: honas grael<br>
Cc: <a href="mailto:users@buildbot.net">users@buildbot.net</a><br>
Subject: Re: [<a href="mailto:users@bb.net">users@bb.net</a>] Killing a windows task(process) using taskkill from the shellcommand<br>
<br>
FWIW, I invoke a script for my build steps, and it has the line taskkill /F /IM mspdbsrv.exe /T<br>
in it.  Works great.   While it may seem strange to put<br>
the build logic in a script (or batch file) rather than in build steps, it sure makes debugging easier.<br>
<br>
On Fri, Apr 1, 2016 at 8:28 AM, honas grael <<a href="mailto:honasgraeymael@gmail.com">honasgraeymael@gmail.com</a>> wrote:<br>
> Hi Everyone,<br>
><br>
> I don't know if i'm doing it worng but I have an executable task that<br>
> I want to kill at the end of my build.<br>
><br>
> It seems easy enough to start the executable using something along the<br>
> lines of<br>
><br>
> factory.addStep(steps.ShellCommand(<br>
><br>
> command=["run_my_custom_executable.exe","config_file_for_executable.txt"],<br>
>               logfiles={"triallog": {"filename": "c:\\temp\\test.log",<br>
>                    HaltOnFailure=True))<br>
><br>
> I want to kill that executable, so I have tried<br>
><br>
> factory.addStep(steps.ShellCommand(command=["cmd /c taskkill /im<br>
> run_my_custom_executable.exe /f /t]))<br>
><br>
> but no joy so far, though the command works fine when I type it<br>
> directly into the Windows command shell.<br>
><br>
><br>
> Also I wanted to introduce a time delay between steps so I thought I'd<br>
> use the Windows timeout shell command<br>
><br>
><br>
> factory.addStep(steps.ShellCommand(command=["cmd /k timeout 30<br>
> /nobreak]))<br>
><br>
> What am i missing?<br>
><br>
><br>
><br>
> Regards<br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> users mailing list<br>
> <a href="mailto:users@buildbot.net">users@buildbot.net</a><br>
> <a href="https://lists.buildbot.net/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.buildbot.net/mailman/listinfo/users</a><br>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@buildbot.net">users@buildbot.net</a><br>
<a href="https://lists.buildbot.net/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.buildbot.net/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div>