It's all about the answers!

Ask a question

exectuing multiple commands using ant (exec)


Ananya Joisa (4562124) | asked May 10 '13, 1:03 a.m.
Hi All,

I have my Jazz Team Server setup in a AIX machine and I am trying to run builds now. I am trying to run the following commands.

ssh machine_name (ssh to a machine)
cd /path_to_executable (in the newly logged in machine cd to a particular location)
perl hello.pl (run a script in the new path)

I want to be able to run these commands in ant(build.xml). To avoid password prompt during ssh, I have followed the this setup of passwordless ssh : http://edaweb.fishkill.ibm.com/twiki/bin/view/DeckBuilder/HowToMultiSiteSSH.

Will I be able to use ant 'exec' task to run these? Could someone please suggest what can be done?
Thanks.

One answer



permanent link
Jeff Care (1.0k3833) | answered May 14 '13, 2:33 p.m.
You may want to look at Ant's sshexec task.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.