ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sérgio <s.cond...@campus.fct.unl.pt>
Subject sshexec command output
Date Thu, 09 Aug 2012 09:04:43 GMT
Hi,

I have a task sshexec in my ant buildfile. This task shows the output of 
the command i wish to execute. My question is: how to not show the output?

here is my task:

|<sshexec  verbose="false"  failonerror="true"
   trust="yes"  host="${app.deploy.server}"
   username="${deploy.user}"
   command="find /home/software/public_html/${app.name} -name *.jar* -exec md5sum {} +"
   password="${deploy.password}"
   output="jarsAtServer.txt"  outputproperty="trash"  />

This always shows the output of the command like:

   [sshexec] Connecting to evoserver:22
   [sshexec] cmd : find /home/software/public_html/evoluter -name *.jar* -exec md5sum {} +
   [sshexec] 249a24de72516959ef3599c9d69da07a  /home/software/public_html/evoluter/evoluter.jar
   [sshexec] 289e0d336f4611f82cce60dd1b7051a8  /home/software/public_html/evoluter/lib/truelicense.jar.pack.gz
   [sshexec] eb4bcab76056b5fe08062024f1ec7e9f  /home/software/public_html/evoluter/lib/webservices-rt-sp2.1.jar
   [sshexec] 4257e80cb91a85629ed5c550628cac3c  /home/software/public_html/evoluter/lib/evologgerclient.jar.pack.gz
   [sshexec] 7f48fb0b84d6ca40327682e5a462c638  /home/software/public_html/evoluter/lib/nimrodlf.jar
   [sshexec] 93432b45403d2f533e476ac565fe9e12  /home/software/public_html/evoluter/lib/poi-3.5-beta6-20090622.jar.pack.gz
   [sshexec] 2e0c2a8f6378ec55e8d4aabfd50f03aa  /home/software/public_html/evoluter/lib/ant.jar
   [sshexec] d2d663c611d870545d0c730010a5c121  /home/software/public_html/evoluter/lib/evolute.jar.pack.gz
   [sshexec] 33747392268398c902613337dcbeca1c  /home/software/public_html/evoluter/lib/truexml.jar.pack.gz
   [sshexec] 3461a88136209bd08fdafc58991f50b1  /home/software/public_html/evoluter/lib/ant.jar.pack.gz
   [sshexec] 65bbc5c5c9f78493be351a618ad3ac41  /home/software/public_html/evoluter/lib/httpclient-c
   [sshexec] ache-4.1.2.jar.pack.gz
   [sshexec] d6d95d219852b17dd983fb00e2b1c580  /home/software/public_html/evoluter/lib/postgresql-9.1-902.jdbc4.jar
   [sshexec] cdfa5ab80962b8bed07caf5ff8705ceb  /home/software/public_html/evoluter/lib/swingx.jar.pack.gz
   [sshexec] 78f8ede9736afc926ce20fe10c4e4ca4  /home/software/public_html/evoluter/lib/truelicense.jar
   [sshexec] 273a7a1aeaafc2dc20472facf74f5b4b  /home/software/public_html/evoluter/lib/jsch-0.1.41.jar
   [sshexec] c12c8d7d218473d84bff81f92f48441c  /home/software/public_html/evoluter/lib/dom4j-1.6.1.jar.pack.gz
   [sshexec] 2e1ae4077b4dd95d9bd783eee48617f5  /home/software/public_html/evoluter/lib/httpcore-4.1.2.jar.pack.gz
   [sshexec] 50c7cae5023bb875e29ab0f28d971953  /home/software/public_html/evoluter/lib/postgresql-9.1-901.jdbc4.jar.pack.gz
   [sshexec] 1e139439a5db6368940e779cb3247761  /home/software/public_html/evoluter/lib/evospellchecker.jar.pack.gz
   [sshexec] a5b2d4dbd50469770acf78ced4485cb6  /home/software/public_html/evoluter/lib/pop3.jar
   [sshexec] 03282fe226ce8978fc052d1a2b7ac7e3  /home/software/public_html/evoluter/lib/ant-jsch.jar
   [sshexec] d9f06964491012ccf3e96807cbe455a8  /home/sof
   [sshexec] tware/public_html/evoluter/lib/jcommon-1.0.0.jar.pack.gz
   [sshexec] 9e1c688299db65c3c4f7afcb8268f5df  /home/software/public_html/evoluter/lib/commons-collections-3.1.jar.pack.gz
   [sshexec] e36fedd366650c86bd0dc254662704b3  /home/software/public_html/evoluter/lib/jcalendar-1.3.2.jar
   [sshexec] f950388ba90573c25ea9b82530136bbd  /home/software/public_html/evoluter/lib/jazzy-core.jar.pack.gz
   [sshexec] 4ced74fbd0b23d2ec68b7cfe6872d124  /home/software/public_html/evoluter/lib/svnClientAdapter.jar
   [sshexec] 8aad35480c2c9b55f23f293455d29498  /home/software/public_html/evoluter/lib/pop3.jar.pack.gz
   [sshexec] 7285d68c7131ef7a13777483edb649f3  /home/software/public_html/evoluter/lib/substance.jar.pack.gz
   [sshexec] 6575757713cfdd108b65d1dd8ae73862  /home/software/public_html/evoluter/lib/jsch-0.1.41.jar.pack.gz
   [sshexec] 1d86db154e89fcb6427266cc288f037b  /home/software/public_html/evoluter/lib/ant-launcher.jar
   [sshexec] c2bfcd38ab48e01e8be3f16ff264a1b7  /home/software/public_html/evoluter/lib/commons-validator-1.3.1.jar.pack.gz
   [sshexec] 0643e3ba92a6731ebf19943679e35002  /home/software/public_html/evoluter/lib/swingx.jar
   [sshexec] 4e6202a3a1a8966d294dc8e12a16978d  /home/software/public_html/evoluter/lib/commons-codec-1.4.jar
   [sshexec] 34dbf2fa42e773c4e3afc1c13121892d  /home/software/public_html/evoluter/lib/evolute.jar
   [sshexec] e5c47ee9621a3790844fdc6a65ee10cb  /home/software/public_html/evoluter/lib/jfreechart-1.0.1.jar
   [sshexec] cd995880be5675c915400387db24c075  /home/software/public_html/evoluter/lib/evologgervisualizer.jar.pack.gz
   [sshexec] 0036a8726a62a85debd98afd3a534725  /home/software/public_html/evoluter/lib/mailapi.jar
   [sshexec] c6cc4af5df47fa67c0ac3a1e1f917403  /home/software/public_html/evoluter/lib/svnkit.jar.pack.gz
   [sshexec] f56dec36fd016d4d189ce5319917a44a  /home/software/public_html/evoluter/lib/poi-3.5-beta6-20090622.jar
   [sshexec] febd66379be361fb8b7b39b89f0a3a6b  /home/software/public_html/evoluter/lib/httpclient-cache-4.1.2.jar
   [sshexec] 37768c4cd053cdbf827a0236a4b1c771  /home/software/public_html/evoluter/lib/jcommon-1.0.0.jar
   [sshexec] 0f559fd490e101f5358b43b1b762f0f0  /home/software/public_html/evoluter/lib/jdom-1.1.1.jar.pack.gz
   [sshexec] 3112014f467fceae1f40c6f1443baf11  /home/software/public_html/evoluter/l
   [sshexec] ib/ant-classloadertask.jar.pack.gz
   [sshexec] 44aabb24a4b0611d9a2f4b409ed4b070  /home/software/public_html/evoluter/lib/jfreechart-1.0.1.jar.pack.gz
   [sshexec] 51b55249d9ffeba881b7c69949758470  /home/software/public_html/evoluter/lib/svnant.jar
   [sshexec] 76245142650d0d4105642f352a8d9fc4  /home/software/public_html/evoluter/lib/commons-io-1.3.1.jar.pack.gz
   [sshexec] 4599498362c27035409830a33b83ab24  /home/software/public_html/evoluter/lib/TableLayout.jar
   [sshexec] af4d1d59258246b70907ba44824c09cb  /home/software/public_html/evoluter/lib/svnClientAdapter.jar.pack.gz
   [sshexec] 9b49f675697aa1b767f45289187f7e5f  /home/software/public_html/evoluter/lib/webservices-rt-sp2.1.jar.pack.gz
   [sshexec] 0f227a94ff3a717b5f2178f4094955be  /home/software/public_html/evoluter/lib/imap.jar
   [sshexec] 7ed9e024cf016d58f3170b5a130143e6  /home/software/public_html/evoluter/lib/svnant.jar.pack.gz
   [sshexec] b7017539dfe164fb57287025fb89f651  /home/software/public_html/evoluter/lib/evospellchecker.jar
   [sshexec] 585e043ff9161ce8e6ca93aa083dd6a1  /home/software/public_html/evoluter/lib/jakarta-oro-2.0.8.jar
   [sshexec] 3ec4206030a7b4f532509da05ba4b5bf
   [sshexec]   /home/software/public_html/evoluter/lib/httpclient-4.1.2.jar
   [sshexec] 62a49f0449f6faf1ebc34d983d9a2757  /home/software/public_html/evoluter/lib/postgresql-9.1-902.jdbc4.jar.pack.gz
   [sshexec] feda3d588ccb43f4285f8f06d889255e  /home/software/public_html/evoluter/lib/jcalendar-1.3.2.jar.pack.gz
   [sshexec] 38e681dc3bb2970fbed7c54f253637d6  /home/software/public_html/evoluter/lib/dsn.jar.pack.gz
   [sshexec] ddd9adcd51217e992be32847fdafae2b  /home/software/public_html/evoluter/lib/commons-collections-3.1.jar
   [sshexec] 937fabceffa11602f36cf356b17f1161  /home/software/public_html/evoluter/lib/ant-jsch.jar.pack.gz
   [sshexec] ce14e8a7ac56d7202dd0610d9ef5936e  /home/software/public_html/evoluter/lib/dsn.jar
   [sshexec] 7087cba0c81651d37020ecedc7457e1b  /home/software/public_html/evoluter/lib/evologgervisualizer.jar
   [sshexec] 6e16871e42149a0c528416ec1d448531  /home/software/public_html/evoluter/lib/dom4j-1.6.1.jar
   [sshexec] 4a0305b3623676416c52cf7a1b7c9402  /home/software/public_html/evoluter/lib/mailapi.jar.pack.gz
   [sshexec] d43952e0c0966e5ef57b2eb6459f9496  /home/software/public_html/evoluter/lib/evoservices.jar
   [sshexec] 98e2116
   [sshexec] 22518d566ecdea1860b0f15ea  /home/software/public_html/evoluter/lib/svnkit.jar
   [sshexec] ff2188a9d81350d88e203883e25dab1d  /home/software/public_html/evoluter/lib/httpmime-4.1.2.jar
   [sshexec] b5464e5aa8f3e3dfa311e7a77aaa455f  /home/software/public_html/evoluter/lib/jazzy-core.jar
   [sshexec] f0a398e64f2403b0910d68c5ce90a434  /home/software/public_html/evoluter/lib/TableLayout.jar.pack.gz
   [sshexec] 2acf7611adca148c625a55f0c5772c98  /home/software/public_html/evoluter/lib/smtp.jar.pack.gz
   [sshexec] e09115385feb41ed8be10c72ec02bdd3  /home/software/public_html/evoluter/lib/jaxen-1.1.1.jar
   [sshexec] 16794e938ecba5ec1f09203d6c93b964  /home/software/public_html/evoluter/lib/ant-classloadertask.jar
   [sshexec] 53ae4076fc2f5c45fcc51da54af5ba9e  /home/software/public_html/evoluter/lib/imap.jar.pack.gz
   [sshexec] 2f86f1162b01a6470f88cc47c7bf2856  /home/software/public_html/evoluter/lib/miglayout-3.6.jar.pack.gz
   [sshexec] 4d62a94723f1aed9ff85c75c9a43ec17  /home/software/public_html/evoluter/lib/substance.jar
   [sshexec] 864aaccd5e5cc547fd97bc9487a7f5d6  /home/software/public_html/evoluter/lib/commons-logging-1.1.jar.pack.gz
   [sshexec] 9b
   [sshexec] fcb9c3d20214294459615831f9e041  /home/software/public_html/evoluter/lib/log4j-1.2.15.jar
   [sshexec] dc5679bce66f0b5de83a53a2266b9abb  /home/software/public_html/evoluter/lib/httpclient-4.1.2.jar.pack.gz
   [sshexec] 181b58a54b1eff58761e108ef3295225  /home/software/public_html/evoluter/lib/httpcore-4.1.2.jar
   [sshexec] f9268cba27bc6a420edee4103a28e778  /home/software/public_html/evoluter/lib/httpmime-4.1.2.jar.pack.gz
   [sshexec] dc437f56a89818c647bb5c1259252d66  /home/software/public_html/evoluter/lib/postgresql-9.1-901.jdbc4.jar
   [sshexec] 9426c756a52ec6065ede5bbd7644db89  /home/software/public_html/evoluter/lib/commons-logging-1.1.jar
   [sshexec] bbaef5546e919aa133c98b265cb65364  /home/software/public_html/evoluter/lib/jaxen-1.1.1.jar.pack.gz
   [sshexec] 051d0f1112ae2b7eaf93a38a6e495118  /home/software/public_html/evoluter/lib/jdom-1.1.1.jar
   [sshexec] d986fb5057f6bb041779581b7d821911  /home/software/public_html/evoluter/lib/miglayout-3.6.jar
   [sshexec] 8a2624c9588ef613b963b6815a710e7d  /home/software/public_html/evoluter/lib/ant-launcher.jar.pack.gz
   [sshexec] 036d9c431d7fecbf3194d47aae6c67d7  /home/software/public_htm
   [sshexec] l/evoluter/lib/jakarta-oro-2.0.8.jar.pack.gz
   [sshexec] 29f2e5b9493fd9fe719345ca2c4d9449  /home/software/public_html/evoluter/lib/commons-codec-1.4.jar.pack.gz
   [sshexec] ba1890770f8317431f5df253298e519e  /home/software/public_html/evoluter/lib/log4j-1.2.15.jar.pack.gz
   [sshexec] 73bfff45f745e8eaf37f1565e9bc8a2f  /home/software/public_html/evoluter/lib/commons-io-1.3.1.jar
   [sshexec] e046fba505123e8a04a1d92529eb0cab  /home/software/public_html/evoluter/lib/evologgerclient.jar
   [sshexec] 9e543476b34473035c54d6385eaa0bcd  /home/software/public_html/evoluter/lib/smtp.jar
   [sshexec] fe9cfb971aa048e265cfc1696c55fc99  /home/software/public_html/evoluter/lib/nimrodlf.jar.pack.gz
   [sshexec] c30da695d6eb177dcbb9ca3cf16528e6  /home/software/public_html/evoluter/lib/truexml.jar
   [sshexec] cf10bb8e32c3d765c9d1931f9bdd235f  /home/software/public_html/evoluter/lib/evoservices.jar.pack.gz
   [sshexec] f1e2ceea35e65ba8fc26658cdd6fd125  /home/software/public_html/evoluter/lib/commons-validator-1.3.1.jar
   [sshexec] 457d3ee3d99f993f4da39c711789265d  /home/software/public_html/evoluter/evoluter.jar.pack.gz

How can I omit this output? I just want the output stored at jarsAtServer.txt. Thanks in advance.
Sérgio Condeço.
|


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message