views:

811

answers:

2

I am new to Hudson with PSEXEC, i am using hudson in my computer, i want to run batch file on remote computer from hudson build. I used PSEXEC to run batch file on remote computer,when i executed from command promt it working successfully.But same i did from Hudson build its hanging..it's not doing anything.so please give any suggestions is there any other way we can handle this.

I want to do this quikly...urgent Anyones help is appreciable

thanks in advance.

+2  A: 

Could it be that psexec is waiting for a user entry? In this case hudson will hang.

Does Hudson runs with your user credentials? if not lunch a command Prompt with the credentials Hudson is running with and see what happens if you call psexec. If hudson runs on the local system account, you can't start a command prompt with it. Than try to run Hudson with your credentials and see what happens.

BTW, did you check Hudsons log files (just in case that there might be something)?

Peter Schuetze
Thanks Peter its working for meActually the problem is batch file in remote machine has .vbs file to execute,i have added wscript to execute that one then its working
vishu
A: 

Hi,

I had the same problem where PSEXEC simply hung.

The solution i found (after trawling for AGES) was to add the parameter -accepteula to the PSEXEC called. Hudson stopped hanging after that.

Very frustrating.