title: Can the at command in rest be simplified?
body: <pre><code>rest(){
      echo "have a rest in "$1 " minutes"
      at -f /home/rest.sh now+$1 minutes
  }
  </code></pre>
  
  <p>To edit a rest.sh script.</p>
  
  <pre><code>vim /home/rest.sh
  xscreensaver-command --lock
  </code></pre>
  
  <p>To test it.</p>
  
  <pre><code>rest 60
  have a rest in 60  minutes
  warning: commands will be executed using /bin/sh
  job 7 at Thu Feb  9 11:15:00 2017
  </code></pre>
  
  <p>Can the <code>at</code> command in rest be simplifed?<br>
  To delete the /home/rest.sh, to pass parameter with pipe or other way?</p>