title: How to solve permission denied error in cron?
body: <p>I am trying to run a shell script file using cron and I am getting permission denied error. </p>
  
  <p>Here is my cron file.</p>
  
  <pre><code>53 14 30 10 * $HOME/Documents/Python/shellScript.sh
  </code></pre>
  
  <p>I want to run shellScript file at a particular time today. </p>
  
  <p>Here is my shellScript.sh file.</p>
  
  <pre><code>osascript&lt;&lt;EOF
  tell application "System Events"
    tell process "Terminal" to keystroke "t" using command down
  end
  tell application "Terminal"
    activate
    do script with command "python file1.py" in window 1
  end tell
  EOF
  
  osascript&lt;&lt;EOF
  tell application "System Events"
    tell process "Terminal" to keystroke "t" using command down
  end
  tell application "Terminal"
    activate
    do script with command "./ngrok 5000" in window 1
  end tell
  EOF
  
  python file2.py
  </code></pre>
  
  <p>I am getting this in the mail.
  /bin/sh: /Users/XXX/Documents/Python/shellScript.sh: Permission denied</p>
  
  <p>It would be great if anyone can help me with this. 
  Thank you</p>