5

Im very new to command line so please forgive my ignorance. I can succesfully execute my script using putty by navigating to the relevant direcotry and typing

bash app_auth.sh

I'm now trying to set this scipt to run using cPanel cron job. I have tried the following but it doesnt work:

*   *   *   *   *   /public_html/app/cron_jobs/app_auth.sh  

Any help would be appreciated..

Luke Bream
  • 855
  • 2
  • 10
  • 15

2 Answers2

5

Though this thread is old but I found it unanswered hence replying.

Make sure that you have assigned execute permissions to your app_auth.sh file. Also, try setting the following cron:

* * * * * /public_html/app/cron_jobs/app_auth.sh > /home/YOUR_USER/cron.log 2>&1
Baby Groot
  • 4,637
  • 39
  • 52
  • 71
Kailash Aghera
  • 494
  • 3
  • 7
5

Just for the record, I came across the same problem.

I found this webpage, which led me to do this:

/bin/sh /public_html/app/cron_jobs/app_auth.sh

And it worked fine!

Chud37
  • 4,907
  • 13
  • 64
  • 116