Use of putty in command line

Posted by kij on Stack Overflow See other posts from Stack Overflow or by kij
Published on 2010-06-03T14:26:08Z Indexed on 2010/06/03 14:54 UTC
Read the original article Hit count: 222

Filed under:

Hi,

I'm trying to use putty in command line from an hudson job.

The command is the following one:

putty -ssh -2 -P 22 USERNAME@SERVER_ADDR -pw PASS -m command.txt

Where 'command.txt' is a shell script to execute in the server through SSH.

If i launch this command from the Window command prompt, it works, the shell script is executed on the server machine. If i launch a build of the hudson job configured with this batch command, it doesn't work. The build is running... and running... and running.. without doing anything, and i have to stop it manually.

So my question is:

Is it possible to launch an external programm (i.e. putty) from an hudson job ?

ps: i tried SSH plugin but... not a really good plugin (pre/post build, fail status of the commands launched not caught by hudson, etc.)

Thanks in advance for your help.

Best regards.

kij

© Stack Overflow or respective owner

Related posts about hudson