Here is an example of executing several commands with <sshexec> :
<sshexec host="shell.sourceforge.net" username="${ssh.user}" password="${ssh.password}" trust="yes" failonerror="true" command="cd /home/groups/j/jm/jmol/htdocs/; tar zxvf upload.tgz; rm upload.tgz"> </sshexec>

Complete build file can be found at:
http://cvs.sourceforge.net/viewcvs.py/jmol/Jmol-web/build-deploy.xml?view=markup

Nicolas

[EMAIL PROTECTED] wrote:

Is there a way to write soemthing like this ?

<sshexec knownhosts="${host}"
        trust="${trust.flag}"
        host="${host}"
        username="${usr}">
 cd /home/${usr}/src/${application-module};
 tar cf stuff.tar.gz ./jython/Util.py ./jython/Common*.py 
./jython/Parameters.py ./jython/Main.py
./jython/Constants.py
</sshexec>

or even better :
<sshexec knownhosts="${host}"
        trust="${trust.flag}"
        host="${host}"
        username="${usr}">
 <command>
   cd /home/${usr}/src/${application-module};
   tar cf stuff.tar ./jython/Util.py ./jython/Common*.py ./jython/Parameters.py 
./jython/Main.py
./jython/Constants.py
 </command>
</sshexec>

As far as I can read the sshexec doco's they never mentionned something like 
that ... but ...




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to