title: How to add a crontab job to crontab using a bash script?
body: <p>I tried the below command and crontab stopped running any jobs:
  <code>echo "@reboot /bin/echo 'test' &gt; /home/user/test.sh"| crontab -</code></p>
  
  <p>What is the correct way to script adding a job to crontab in linux?</p>