title: Run a script with arguments using crontab
body: <p>I know this may have been answered earlier in various posts, but I've not been able to make this run myself.</p>
  
  <p>I have a bash script <em>(service.sh)</em> that I would like to run every minute. It needs an argument to be passed (<em>start</em> in this case).</p>
  
  <p>Using another script <em>(test.sh)</em> I am scheduling the cron expression for the above script:</p>
  
  <pre><code>echo "* * * * * /opt/service.sh start" &gt; /opt/cronForSecops
  crontab /opt/cronForSecops
  </code></pre>
  
  <p>I can see by using <em>crontab -l</em> that this is being set correctly as:</p>
  
  <pre><code>* * * * * /opt/service.sh start
  </code></pre>
  
  <p>However, the <em>service.sh</em> does not run, and I see no logs/files being created (which the <em>service.sh</em> file is supposed to do, when I run it normally).</p>
  
  <p>Can anybody please guide me on where I am going wrong?</p>