1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[INFO] The Cron Jobs Instruction

Discussion in 'Black Hat SEO' started by origin, Nov 16, 2009.

Tags:
  1. origin

    origin Regular Member

    Joined:
    Nov 11, 2008
    Messages:
    334
    Likes Received:
    90
    Home Page:
    Cron job is like time scheduler. I noticed that some of you have no idea how to make cron jobs working. I collected information from many resources, so here it is:

    Cron job working via CPanel

    1. Login to your cpanel.
    2. Click cron icon.
    3. Click standard.
    4. Enter your email address for reporting if the cron is failed.
    5. Choose the time what you want.
    6. Enter the command, it depends on your server hosting.

    the command should be like this:

    Code:
    curl -s -o /dev/null http://yourdomain.com/your_script.php
    if curl is disable form your hosting service, you can use another way, with this:

    Code:
    lynx -dump http://yourdomain.com/your_script.php > /dev /null
    if curl and lynx is disable form your hosting service, you can use another way, with this:

    Code:
    /usr/bin/wget -O /dev/null /home/your_username/public_html/script.php
    or

    Code:
    GET http://yourdomain.com/your_script.php > /dev /null
    if curl, lynx and wget is disable form your hosting service, you can use another way, with this:

    in the your_script.php file put this at the top the first line before anything:

    Code:
    !#/usr/bin/php
    and use this cron command

    Code:
    php -f /home/your_username/public_html/your_script.php
    note:
    file your_script.php should chmod 755
    and the /home/your_username/ is your path on server.

    if you have still problem, like " No input file specified. ", please try this:

    Code:
    links http://yourdomain.com/your_script.php
    Save it and done...

    Hope this helps.
     
  2. dungxvn

    dungxvn Junior Member

    Joined:
    Nov 11, 2009
    Messages:
    182
    Likes Received:
    47
    Home Page:
    Hi, Thanks for the post but could you please tell me what does cron job do?
     
  3. origin

    origin Regular Member

    Joined:
    Nov 11, 2008
    Messages:
    334
    Likes Received:
    90
    Home Page:
    It execute some script that you put on the cron list based on time (when you set the codes should be executed).
     
  4. kaidoristm

    kaidoristm Power Member

    Joined:
    Feb 13, 2009
    Messages:
    561
    Likes Received:
    726
    Occupation:
    Freelancer
    Location:
    Estonia
    Home Page:
    It runs your defined scripts automatically on your defined delay.
     
  5. moxer

    moxer Registered Member

    Joined:
    Mar 3, 2008
    Messages:
    96
    Likes Received:
    16
    Occupation:
    Full time Internet Marketer
    In hostgator I usually use wget