[email protected] schrieb am Mittwoch, 18. August 2021 um 15:14:13 
UTC+2:

> 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)
>

Yes,  that is expected. You can only usefully commands that finish at some 
point in time and only then the next command will be executed. 
If the program runs forever then it looks like it is stuck (but it is just  
waiting for the program to finish).  
See https://superuser.com/a/341603 for how send a program into background 
on windows.  
You should also have some way to stop the program again before your  
jenkins job exits....
 

> -the web interface does not get stuck
>

-- 
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/2bbdb7a0-8851-448b-9550-ea1ea63d3603n%40googlegroups.com.

Reply via email to