PDA

View Full Version : Executing remote commands


pjaiswal
10-04-2006, 06:15 PM
I am trying to run a command on a remote machine using PsExec (PsExec.exe in C:\Windows\System32\ on local computer) & the Remote tab feature.

I have created a bat file on \\xyzmachine\ called c:\abc\test.bat, which has a single command: md C:\testfolder. I created a build script which should run this bat file on xyzmachine. I also logged the command being used in this step, which is

PsExec \\xyzmachine -u xyz -p xyz cmd /c c:\abc\Test.bat


Running this command on the command line on my machine just works fine and it creates a folder on the remote machine. But when I run it using the build script, though the folder is created on the remote machine as desired but it does not exit the step in the build script. Am I doing something wrong?

Thanks,
Pragya

pjaiswal
10-04-2006, 06:27 PM
Also, this works fine when tested on the local computer. the step completes successfully after creating the folder.

Thanks,
pragya

kinook
10-05-2006, 10:00 AM
Not sure. Try using v6.2 and
http://www.visualbuild.com/Manual/programremotetab.htm

If that doesn't help, please ZIP and send or post:
1) The info from Help | About | Install Info
2) The Windows version+SP of the remote computer
3) A reproducible test case (.bld file that can be built here and reproduces the problem)
4) A build log file

Thanks.

pjaiswal
10-05-2006, 02:01 PM
Thanks! I had 6.1 on my machine, upgrading it to 6.2 solved the problem.

thanks again!