I have the same issue here.
I have a .bat file named bat *RunUSBRedirector.bat* that only has one line

*call "C:\Program Files\USB Redirector Client\usbredirectorlt.exe"*
this line should start the application USB Redirector Client
when I invoke this .bat file in the cmd it behaves as expected, but when I 
try to run it in jenkins [bat """RunUSBRedirector.bat"""]  it gets stuck.
I tried the mentioned points:
-Run another exe (calc.exe for example) it worked, but when I tried another 
exe that I installed a few months ago it did not work
-using cmd /c does not change anything
-I get an error when I add a typo to the name of the exe
-I don't think the program waits for stdin, and I don't know how to close 
it (NOTE: cmd window does not show)
-the web interface does not get stuck

On Wednesday, March 20, 2019 at 3:59:06 PM UTC+2 [email protected] wrote:

> Hi Balu,
>
> This is very weird. Some things that you can try:
>
> - Run another exe (something simple). Does that work?
> - Does it work when you put "cmd /c" in front of the name of the 
> executable?
> - Do you get an error when you add a typo to the name of the executable 
> (maybe Jenkins can't find it)?
> - Does the program wait for input on stdin? Try to close stdin (not sure 
> how do that on windows, on Linux, it would be "< /dev/null")
> - Does the master get stuck (i.e. the web interface doesn't respond 
> anymore) or the slave?
>
> Regards,
>
> -- 
> Aaron Digulla
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/93d354a1-14eb-40ef-a12a-cb27504fca70n%40googlegroups.com.

Reply via email to