title: How can I get this terminal 'at' command to work properly?
body: <p>Using at to schedule a systems message. I need to run it in a script, so the first option which requires ctrl+d is not viable. <em><strong>Also note, in the first option, the pipe fails UNLESS I add a nonsense echo statement below it.</strong></em></p>
  <p>first option, works but cannot use:</p>
  <pre><code>    $ at now
      &gt; cat file.txt | write user pts/0
      &gt; echo &quot;nonsense&quot;
      &gt;[ctrl+d]
  </code></pre>
  <p>second option, which needs to work:</p>
  <pre><code>    $ at now &lt;&lt; 'END_AT'
      &gt; cat file.txt | write user pts/0
      &gt; END_AT
  </code></pre>
  <p>Please note that with or without the nonsense echo in the second option, it fails to cat the contents of the text file. I need this second option to properly display, what am I doing wrong here??</p>