title: starting remote script via ssh containing nohup
body: <p>I want to start a script remotely via ssh like this:</p>
  
  <pre><code>ssh user@remote.org -t 'cd my/dir &amp;&amp; ./myscript data my@email.com'
  </code></pre>
  
  <p>The script does various things which work fine until it comes to a line with nohup:</p>
  
  <pre><code>nohup time ./myprog $1 &gt;my.log &amp;&amp; mutt -a ${1%.*}/`basename $1` -a ${1%.*}/`basename ${1%.*}`.plt $2 &lt; my.log 2&gt;&amp;1 &amp;
  </code></pre>
  
  <p>it is supposed to do start the program myprog, pipe its output to mylog and send an email with some datafiles created by myprog as attachment and the log as body. Though when the script reaches this line, ssh outputs:</p>
  
  <blockquote>
    <p>Connection to remote.org closed.</p>
  </blockquote>
  
  <p>What is the problem here?</p>
  
  <p>Thanks for any help</p>