Sysinternals Homepage
Forum Home Forum Home > Sysinternals Utilities > PsTools
  New Posts New Posts RSS Feed: psexec via Hudson
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

psexec via Hudson

 Post Reply Post Reply
Author
Message Reverse Sort Order
molotov View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 04 October 2006
Online Status: Offline
Posts: 17492
Post Options Post Options   Quote molotov Quote  Post ReplyReply Direct Link To This Post Topic: psexec via Hudson
    Posted: 04 November 2009 at 11:02am
The -i param may be relevant, in the event you wish CMD.EXE to appear on the remote system rather than the local.  Is that truly the case?
Daily affirmation:
net helpmsg 4006
Back to Top
Mikael View Drop Down
Newbie
Newbie


Joined: 02 November 2009
Online Status: Offline
Posts: 4
Post Options Post Options   Quote Mikael Quote  Post ReplyReply Direct Link To This Post Posted: 04 November 2009 at 8:20am
Hi Molotov and thanks for these reply
I finally found, the good  line was
PSexec -i \\myIP -u myUser -p myPassword -w myFolder cmd.exe

Thanks for your help
Back to Top
molotov View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 04 October 2006
Online Status: Offline
Posts: 17492
Post Options Post Options   Quote molotov Quote  Post ReplyReply Direct Link To This Post Posted: 04 November 2009 at 4:16am
Perhaps, try:
  PSexec -accepteula \\myIP -u myUser -p myPassword -w myFolder cmd.exe

Daily affirmation:
net helpmsg 4006
Back to Top
Mikael View Drop Down
Newbie
Newbie


Joined: 02 November 2009
Online Status: Offline
Posts: 4
Post Options Post Options   Quote Mikael Quote  Post ReplyReply Direct Link To This Post Posted: 03 November 2009 at 12:25pm
Hi Molotov and  thanks for your reply
I've tried to include /accepteula but it doesn't seem to work.
My prompt line lokks like as follow now :

PSexec \\myIP /accepteula -u myUser -p myPassword -w myFolder test.bat

Back to Top
molotov View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 04 October 2006
Online Status: Offline
Posts: 17492
Post Options Post Options   Quote molotov Quote  Post ReplyReply Direct Link To This Post Posted: 03 November 2009 at 11:56am
Hi Mikael,

Try including /accepteula on your psexec command-line.
Daily affirmation:
net helpmsg 4006
Back to Top
Mikael View Drop Down
Newbie
Newbie


Joined: 02 November 2009
Online Status: Offline
Posts: 4
Post Options Post Options   Quote Mikael Quote  Post ReplyReply Direct Link To This Post Posted: 03 November 2009 at 11:23am
OK, I finally found
By default the hudson launch processes with the System account. Of course, this account isn't allowed to acces through the network.
I still have a little problem : my process is launched but never ends. I got the following trace
[exec] 

[exec] PsExec v1.96 - Execute processes remotely

[exec] Copyright (C) 2001-2009 Mark Russinovich

[exec] Sysinternals - www.sysinternals.com

[exec]

I believe it's a problem of stdout but I don't know how to solve this problem

Any help will be appreciated

Thanks in advance




Back to Top
Mikael View Drop Down
Newbie
Newbie


Joined: 02 November 2009
Online Status: Offline
Posts: 4
Post Options Post Options   Quote Mikael Quote  Post ReplyReply Direct Link To This Post Posted: 02 November 2009 at 3:56pm
Hello,
I try to use psexec via nant scripts and I got some troubles :
My nant script calls a C# exe which contains the following :
"C:\WINDOWS\system32\CMD.exe" /C PSexec \\myIP -u myLogin -p myPassword Ipconfig

When I try to call my nant file in a shell this works perfectly
But when i try to call this sale nant file via hudson I get an error like "Unable to connect to the remote server"

Any idea?
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down