Re: Batch command with slave mode configuration

2015-09-28 Thread Quang Truong
I have found the root cause: because I changed the way to invoke the slave and the account running the slave connection doesn't have enough permission so that Jenkins doesn't have permission to see nbtstat command. A workaround is running the slave.jar to call the jnlp from Jenkins master by th

Re: Batch command with slave mode configuration

2015-09-17 Thread Quang Truong
Thanks Victor! I have tried with backlash (actually we can use even Linux syntax here) and use %windir% instead of C:\Windows but still got the syntax error. I don't know how to correct the syntax for this block in FOR command '"%windir%\System32\nbtstat.exe" -A %VM_IP% ^|FIND "<20>"' Thanks,

Re: Batch command with slave mode configuration

2015-09-16 Thread Victor Martinez
Hi Quang, C:/Windows/System32/nbtstat.exe is not windows format. AFAIK it should be backlash instead. You could try to set your path variable too. Cheers On Wednesday, 16 September 2015 21:39:33 UTC+2, Quang Truong wrote: > > Dear all, > > I have encountered an issue like this: > > - If I setu

Batch command with slave mode configuration

2015-09-16 Thread Quang Truong
Dear all, I have encountered an issue like this: - If I setup a slave by downloading and running the jnlp file (no need to install as Window service, just leave the java dialog as connected process). Then I can run this batch command: setlocal EnableDelayedExpansion FOR /f "tokens=1 delims=<"