Cron Jobs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TheServant
    Recognized Expert Top Contributor
    • Feb 2008
    • 1168

    Cron Jobs

    I apologies if this is in the wrong place, but I have a basic question about CRON jobs. My provider has a little program, which I am guessing automatically creates CRON jobs. Basically I check boxes to say how often I want it to run and then enter a command to run. I want a php file of mine to run, but I can't get it to work.

    I have tried:
    http://mydomain.com/myfolder/myphpfile.php
    /home/public_html/myfolder/myphpfile.php

    And a few others which I can't remember. Should tehre be a run() or something around that or am I completely off track?!

    Thanks for your help,
    The Servant
  • TheServant
    Recognized Expert Top Contributor
    • Feb 2008
    • 1168

    #2
    OK, I have found a site which explained what I wanted. Only problem is it's not working!

    This is my command:
    /home/myusername/public_html/myfolder/myfile.php

    Comment

    • ronverdonk
      Recognized Expert Specialist
      • Jul 2006
      • 4259

      #3
      I think you'll have to follow your provider's guidelines or contact him in order to get the correct format of the command you want to be executed by his program.

      Ronald

      Comment

      • TheServant
        Recognized Expert Top Contributor
        • Feb 2008
        • 1168

        #4
        Thanks ronverdonk,
        Just did and I have it working. This can be closed.

        Comment

        • ronverdonk
          Recognized Expert Specialist
          • Jul 2006
          • 4259

          #5
          Ok and good luck! See you again here some day.

          Ronald

          Comment

          • TheServant
            Recognized Expert Top Contributor
            • Feb 2008
            • 1168

            #6
            Just one more question. My provider was not happy that I was running a cron every 10mins. I am basically updating 6 values per row in a table which may reach over 1000 rows (depending on whether my site is successful or not). Do you think this will be too load intensive every 10mins?

            Comment

            • ronverdonk
              Recognized Expert Specialist
              • Jul 2006
              • 4259

              #7
              I don't think 6000 rows/hour is too heavy a load on the system. Unless your provider has a very small system. But as long as you don't reach the agreed maximum there is not much the provider can do.

              Ronald

              Comment

              • TheServant
                Recognized Expert Top Contributor
                • Feb 2008
                • 1168

                #8
                Is there anyway to tell?

                Comment

                • ronverdonk
                  Recognized Expert Specialist
                  • Jul 2006
                  • 4259

                  #9
                  Ask your provider to give you the load details on your cron job. Providers usually collect everything, so he can provide you with this information.
                  What do you intend to do with the info anyway?

                  Ronald

                  Comment

                  • TheServant
                    Recognized Expert Top Contributor
                    • Feb 2008
                    • 1168

                    #10
                    I am not sure, compare it? I have no idea what a "fast" or "big" script is parameterwise. I might just leave it and try it out. If I find it very slow I will come back here! Thanks for your help.

                    Comment

                    • ronverdonk
                      Recognized Expert Specialist
                      • Jul 2006
                      • 4259

                      #11
                      Welcome any time.

                      ROnald

                      Comment

                      Working...