Nov 22, 2009

How To Configure Cron Jobs?

free web hosting
Open Discussion > MODERATED AREA > Trapper's Secret HideOut

How To Configure Cron Jobs?

Ousk
Ok so i have seen the topic about this and in cpanel chose advanced and wrote /usr/local/bin/php -q /home/*myusername*/public_html/cron.php in the field and 40 in the minute slot in front, but with no luck, still the cron job for drupal does not run. Why? smile.gif

Comment/Reply (w/o sign-up)

Nabb
Try this: wget -O - -q -t 1 http://your.website.com/cron.php

And for the timing - I don't see how you would need to run cron more than once a day, so probably pick any values for minute/hour and *'s for the other fields.

Comment/Reply (w/o sign-up)

Ousk
not working but thx for the reply

Comment/Reply (w/o sign-up)

Pankyy
The real deal to me is, in the Advanced Mode:

* * * * * (Set to which hour, etc, date) : curl http://URL.com

Try if that works for you, it works for me.

Comment/Reply (w/o sign-up)

Ousk
don't really get what i should enter i tried it but.. no results i think i'll just use poormanscron

Comment/Reply (w/o sign-up)

freeflashclocks
I would apreciate if anyone could help a litle more please, i too must know how to create cron jobs, i did not search the internet yeat because i wanted to get help over here, so if anyone could explain how , i apreciate it, i have a wordpress blog which needs a cron job because of a plugin i have, and it gave a code create a cron job, but i do not know where to execute or insert that code for the cron job.

Can anyone tell me where i do execute code already given to create a cron job?

Comment/Reply (w/o sign-up)

BuffaloHELP
I'm assuming cron.php contains list of instructions? Remember that cron itself has standard commands such as copy, "cp" with command extensions, i.e. r for replace etc.

And the correct path name you should use is

/home/cpanel_name/public_html/cron.php

if the file you want to execute is within public_html folder.

/home/cpanel_name/cron.php

if the file is located outside public_html folder.

A simple example to copy a file over, writing over the existing file from location A to B:

cp -rf /home/cpanel_name/public_html/A/filename /home/cpanel_name/B/

Notice that I can copy outside of the public_html because /home/cpanel_name/ is my root directory. The same file name will be preserved and the existing file in location B will be overwritten without confirmation. This can be entered directly to Cron job using Standard method. No need to enter Unix command form.

Comment/Reply (w/o sign-up)

Ousk
hmm now it works with the /usr/local/bin/php -q /home/*myusername*/public_html/cron.php don't know why it didn't before. i use
0 12 * * * /usr/local/bin/php -q /home/*myusername*/public_html/cron.php and it runs every 12 hours

Comment/Reply (w/o sign-up)



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords :

  1. Configure 2nd Domain To Point To Subfolder
    (0)
  2. Cron Jobs?
    how does this feature work? (1)
    hello guys! i was looking my cPanel and i was this feature Cron Jobs under Advanced Tools, my
    question is what kind of scripts it runs? could i run php code directly? or could i specify a php
    file to run ? thanx in advance guys....
  3. Cron Jobs?
    What are these supposed to do? (3)
    I was going through my cpanel and came upon cron jobs. I was wondering if anybody could tell me what
    they do and how to make them do that. Thanks to whoever helps me /biggrin.gif' border='0'
    style='vertical-align:middle' alt='biggrin.gif' /> ....
  4. Mail Settings To Configure Outlook Express
    Common mistakes by members (11)
    Hi, There are many members who face trouble getting their mails to their inbox. There can be many
    reasons for which your system might not be able to fetch mails from our servers. We have kept all
    the attributes related to the mail at DEFAULT so that our clients don't have problems
    configuring the mail themselves. Here the the general mistakes which members make :- 1. Username
    *MUST* be in format USERNAME@DOMAIN.COM (i.e. your complete Emaill address itself acts as your
    username) 2. Forget the password or confuse it with Cpanel password. Every Email address has to....
  5. Webalizer Question
    How to configure that one (1)
    I would like to see some stats of my site and found three programs in cpanel but only Awstats works
    for me /sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' /> It looks that
    Webalizer is very good but when I click on it it says Webalizer stats have not yet been generated!
    /blink.gif' border='0' style='vertical-align:middle' alt='blink.gif' /> So how I could
    configurae it....
  6. Cron Job
    Doesn't work (2)
    Please check it for me, I think the cron jobs are not working. I did never receive the e-mail with
    the results.......
  7. Cron Again..
    (4)
    I've put the following line: /home/falgor/file.php Is this right? (the file is in the root
    directory, not on www)....
  8. Cron Job Questions
    :S (2)
    I have some questions about Crin Jobs (I really need this feature): -My script does not accept
    external access. What is the referer of the crons? -If I want to put the cron to a file called
    file.php in www directory, what will be the command line? -I am not receiving e-mails with the
    results. o.O Thank you!....
  9. Cron Job - How?
    to create sub-directory's backup.. (1)
    Dear All.. i need backup my subdir into tar.gz file as we know we have cron job at our cpanel.. is
    it possible to do this using that tool? lets say scheduling a job for creating tar.gz on certain
    sub-dir into a file.tar.gz at specific time. then we will download it (the result file.tar.gz) from
    web? usually i use tool: backup, but it use for all data in home dir thanx in adv.. /smile.gif"
    style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />....

    1. Looking for How, To, Configure, Cron, Jobs?

Searching Video's for How, To, Configure, Cron, Jobs?
See Also,
advertisement


How To Configure Cron Jobs?

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com