1

I have PHP script that does almost 4 hours task, normally the Online services for Cron runs your script for 300sec or limited time so I thought I should run my cron on EC2 instance, My question is ,

  1. is there any default timeout for my cron, if my cron runs it will run upto completion of script?

  2. Is there any library or too for setting up cron rather than going through putty/SSH?

I got mixed answers on Google,therefore I am asking,

8
  • If you have cpanel on your server, there is a cpanel API which allows you to edit the cron jobs. Commented Nov 5, 2014 at 19:26
  • @Adelphia EC2 servers has no cPanel, other than the aws dashboard :)
    – Badddy
    Commented Nov 5, 2014 at 19:28
  • The script is on your server?
    – baao
    Commented Nov 5, 2014 at 23:46
  • How do you call it right now?
    – baao
    Commented Nov 6, 2014 at 13:08
  • @michael I create a cron job in shell
    – Badddy
    Commented Nov 6, 2014 at 13:27

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.