Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

exectuing multiple commands using ant (exec)

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.

0 votes



One answer

Permanent link
You may want to look at Ant's sshexec task.

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 562
× 63
× 25

Question asked: May 10 '13, 1:03 a.m.

Question was seen: 9,031 times

Last updated: May 14 '13, 2:33 p.m.

Confirmation Cancel Confirm