i wrote the expect script and now it is able to execute remote command however, when i am executing slave.jar file , it is throwing exception:
$ /home/bvcontrolbuild/a.sh abc 10.0.5.4 "/home/Administrator/a.sh" spawn ssh [email protected] /home/Administrator/a.sh [email protected]'s password: <===[HUDSON REMOTING CAPACITY]===>ERROR: Unable to launch the slave agent for 10.0.5.4java.io.StreamCorruptedException <http://stacktrace.hudson-ci.org/search?query=java.io.StreamCorruptedException>: invalid stream header: C2ACC3AD at java.io.ObjectInputStream.readStreamHeader(Unknown Source) at java.io.ObjectInputStream.<init>(Unknown Source) at hudson.remoting.Channel.<init>(Channel.java:400) at hudson.remoting.Channel.<init>(Channel.java:340) at hudson.remoting.Channel.<init>(Channel.java:307) at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:307) at hudson.slaves.CommandLauncher.launch(CommandLauncher.java:120) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:194) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) please suggest
