title: Ant sshexec commandResource example
body: <p>I'm having trouble figuring out what a commandResource actually looks like.  The only example i've seen is listed below for <a href="http://ant.apache.org/manual/Tasks/sshexec.html" rel="nofollow">Apache's page</a> (not very helpful)</p>
  
  <pre><code>&lt;sshexec host="somehost"
      username="dude"
      keyfile="${user.home}/.ssh/id_dsa"
      commandResource="to_run"/&gt;
  </code></pre>
  
  <p>So my peice looks like this</p>
  
  <pre><code>&lt;sshexec host="${host}" 
       trust="yes"
       username="${username}"
       password="${password}"
       commandResource="Commands.txt"/&gt;
  </code></pre>
  
  <p>How do I design the format of Commands.txt? What i'd like to do is the following:</p>
  
  <p>Command 1: sudo user runscript.sh</p>
  
  <p>Command 2: "${password}" (password needs to be entered in the script as well)</p>