Jul 26, 2008

Cron Jobs - Cron Jobs In Cpanel - Cron Jobs : Cron Jobs using PHP

Free Web Hosting, No Ads > CONTRIBUTE > Tutorials
Pages: 1, 2, 3

free web hosting

Cron Jobs - Cron Jobs In Cpanel - Cron Jobs : Cron Jobs using PHP

matthewbot
Pretty interesting, I've never been with a host that lets me use Cron jobs before, and they sound pretty cool. dunno if I'll ever need to use em, but itz still an interesting how-to. Great job!

Reply

alapidus
it still doesn't work for me:

my full nightly command (midnight EST):

0 19 * * * /usr/local/bin/php -q /home/gamefaqs/public_html/cron_omgwtflolbbq/daily_purge.php

did i forget something? am i supposed to put a "GET" in somewhere?

please help! this is really important for my site!

thanx in advance

Reply

Fu Still Better
Finally... but I still don't get it. sad.gif

7 different people tried it and none of them worked. 7 people.
and none worked.

I'm using the LUE2 source and I need cron jobs to run important parts of it.

I need it for something called karma and something called gems, which is the curreny needed to buy certain items I put in the shop. It's pretty interesting; check it out some time.

Anyway, I also have a game on there to, which also needs crons to give people experciance points and gold to buy stuff from the game's shop.

But yea, if you could help me with it OpaQue, I'd really appreciate it. And I'll let you come to my site anytime you'd like. >_>

Reply

DssTrainer
OK im trying these cron jobs out on my cpanel too and I've gotten mixed messages.

I have a php file that just needs to be processed in order for it to work. So all i would do is type in the address of the php file, and it would start processing log files. I want to do this remotely from my webhost site. So I was told once that i could use
CODE

#wget http://www.mysite.com/update.php


and that would run that page at the time I wanted. But it didn't do anything.

Then i saw someone use:

CODE

get http://www.mysite.com/update.php


tried it, nothing happened.

so is there a way to just have the cron job access a remote file by the webaddress?

The way I have it set up is this.

3 Tasks.
Task 1) call on a remote url that is on my home pc to do a log file parse. This is done simply by accessing the php file through any browser, thats it.

Task 2) call on a remote url to do a database backup of the database on that server. Now thats the logs are parsed, it updated the database with all the parsed info.

Task 3) call on a local file to do a database restore to the mirrored database on the webserver, i.e. make the webserver db match my homepc db.


This all works fine if i do it manually. but what command allows the cron job to do it?

 

 

 


Reply

DssTrainer
ok I found it.
CODE

/usr/local/bin/GET -C root:pass http://my.ip.add.ress/folder/logs.php?pass=update

this does the trick. loads the remote file.

Reply

DssTrainer
QUOTE(DssTrainer @ Mar 1 2005, 10:25 PM)
ok I found it.
CODE

/usr/local/bin/GET -C root:pass http://my.ip.add.ress/folder/logs.php?pass=update

this does the trick. loads the remote file.
*




ok nevermind that doesnt work.

Reply

thetvdirectors
I am getting this via e-mail about my cron jobs (directory info protected for security reasons; smile.gif ):
/home/mysitename/public_html/directory/protecteddirectory/mail_digests.php: line 1: ?php: No
such file or directory
/home/mysitename/public_html/directory/protecteddirectory/mail_digests.php: line 2:
/aquota.user: Permission denied
/home/mysitename/public_html/directory/protecteddirectory/mail_digests.php: line 3:
mail_digest.php: command not found
/home/mysitename/public_html/directory/protecteddirectory/mail_digests.php: line 4:
-------------------: command not found
/home/mysitename/public_html/directory/protecteddirectory/mail_digests.php: line 5: begin:
command not found
/home/mysitename/public_html/directory/protecteddirectory/mail_digests.php: line 6: syntax
error near unexpected token `('
/home/mysitename/public_html/directory/protecteddirectory/mail_digests.php: line 6: `
copyright : © 2000 The phpBB Group'


Any ideas why?

Reply

badinfluence
Wow.. This is very nice tutorial.. very clear, straight and very effective.
i'm noob but follow this tutorial, i can configure cron job successfully smile.gif
this can be old topic but i just wanna express my succeed!
thks opaque

Reply

farsiscript
dear shyam Corn is in your cpanel ?
and you can Manage the script with corn to run
for example counter biggrin.gif we can add view to site for count counters biggrin.gif

Dear Seņor Maniac
corn is working for all trap17 members , but you must active corn first

Reply

coby
Dear All,

How do i set the cronjob if i want to run the task for every 5 minutes in advance mode

coby

Reply



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*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Pages: 1, 2, 3
Recent Queries:-
  1. cron jobs php - 4.50 hr back. (1)
  2. cpanel cron job format - 4.74 hr back. (2)
  3. cron job cpanel - 5.00 hr back. (1)
  4. how to setup cron jobs in your cpanel - 8.46 hr back. (1)
  5. cron jobs tutorial php - 10.19 hr back. (1)
  6. cpanel cron job to ftp - 11.38 hr back. (1)
  7. disable cron for one account cpanel - 11.82 hr back. (1)
  8. crons php - 15.98 hr back. (1)
  9. how to tell if a cron job is working in my cpanel - 16.09 hr back. (1)
  10. php "-q" cron job - 18.35 hr back. (1)
  11. setting up crons cpanel - 19.30 hr back. (3)
  12. php cron job - 20.88 hr back. (1)
  13. cpanel cron jobs command to run - 21.80 hr back. (1)
  14. email cron jobs in php - 24.25 hr back. (1)
Similar Topics

Keywords : cron, jobs, cron, jobs, cpanel, cron, jobs, cron, jobs, php

  1. Ftp And Cpanel For Dummies
    (7)
  2. Ftp Account Management
    Part 2.2 of my 7 Part Cpanel Tutorial (1)
    This tutorial is an extension to my 7 tutorial series about the Cpanel. The 7 different Cpanel
    tutorials can be found below. Part 1: E-mail Management Part 2: Useful Site Management Tools
    Part 3: Useful Site Management Tools2.1 Part 4: Analysis/Log Files Part 5: Advanced Tools Part
    6: PreInstalled Scripts, Extras, and Cpanel Options Part 7: Fantastico Detailed Cpanel
    Tutorial Part 2.2: FTP Management For this tutorial, you will need to locate the Icon under
    Site Management Tools labeled FTP Manager and also inside of the FTP:// Accounts area....
  3. Cpanel Mysql Database Management
    Part 2.1 Of My 7 Part Cpanel Tutorial (6)
    This tutorial is an extension to my 7 tutorial series about the Cpanel. The 7 different Cpanel
    tutorials can be found below. Part 1: E-mail Management Part 2: Useful Site Management Tools
    Part 3: Useful Site Management Tools2.1 Part 4: Analysis/Log Files Part 5: Advanced Tools Part
    6: PreInstalled Scripts, Extras, and Cpanel Options Part 7: Fantastico Detailed Cpanel
    Tutorial Part 2.1: MySQL Management In this tutorial, i will explain how to add, edit, delete
    and over-all manage the MySQL Feature in the Cpanel. Creating a MySQL Database 1) ....
  4. Cpanel E-mail Management Set-up
    Part 1.1 of My 7 Part Cpanel Tutorial (0)
    This tutorial is an extention to my 7 tutorial series about the Cpanel. The 7 different Cpanel
    tutorials can be found below. Part 1: E-mail Management Part 2: Useful Site Management Tools
    Part 3: Useful Site Management Tools2.1 Part 4: Analysis/Log Files Part 5: Advanced Tools Part
    6: PreInstalled Scripts, Extras, and Cpanel Options Part 7: Fantastico Detailed Cpanel
    Tutorial Part 1.1: E-mail Management In this tutorial i will, in detail explain all of the
    uses for the E-mail Section of the Cpanel. Then, if this is your first time in the cpane....
  5. Cpanel Fantastico
    Part 7 Of My 7 Part Tutorial (14)
    This tutorial is going to discuss the entire list of fantastico features that are on the trap17
    servers This is an extention of my origional 6 part tutorial, now 7 part tutorial. The links to the
    rest are listed below. This tutorial is a follow-up to the Cpanel Tutorials that i wrote last
    night, the links can be found below. Part 1: E-mail Management Part 2: Useful Site Management
    Tools Part 3: Useful Site Management Tools2.1 Part 4: Analysis/Log Files Part 5: Advanced
    Tools Part 6: PreInstalled Scripts, Extras, and Cpanel Options Detailed Cpanel Tutor....
  6. Cpanel Preinstalled Scripts, Extras, And Cpanel Options
    Part 6 of My 7 Part Tutorial (1)
    This Tutorial will be divided into 7 different parts, and this is the first part, when i get the
    other parts together, i will post the links under here /biggrin.gif" style="vertical-align:middle"
    emoid=":D" border="0" alt="biggrin.gif" /> Enjoy. Part 1: E-mail Management Part 2: Useful Site
    Management Tools Part 3: Useful Site Management Tools2.1 Part 4: Analysis/Log Files Part 5:
    Advanced Tools Part 7: Fantastico Detailed Cpanel Tutorial Part 4: PreInstalled Scripts,
    Extra, and Cpanel Options In this tutorial I will, in detail explain all of th....
  7. Cpanel Advanced Tools
    Part 5 of My 7 Part Tutorial (20)
    This Tutorial will be divided into 7 different parts, and this is the first part, when i get the
    other parts together, i will post the links under here /biggrin.gif" style="vertical-align:middle"
    emoid=":D" border="0" alt="biggrin.gif" /> Enjoy. Part 1: E-mail Management Part 2: Useful Site
    Management Tools Part 3: Useful Site Management Tools2.1 Part 4: Analysis/Log Files Part 6:
    PreInstalled Scripts, Extras, and Cpanel Options Part 7: Fantastico Detailed Cpanel Tutorial
    Part 4: Advanced Tools In this tutorial I will, in detail explain all of t....
  8. Cpanel Analysis And Log Files
    Part 4 of My 7 Part Tutorial (0)
    This Tutorial will be divided into 7 different parts, and this is the first part, when i get the
    other parts together, i will post the links under here /biggrin.gif" style="vertical-align:middle"
    emoid=":D" border="0" alt="biggrin.gif" /> Enjoy. Part 1: E-mail Management Part 2: Useful Site
    Management Tools Part 3: Useful Site Management Tools2.1 Part 5: Advanced Tools Part 6:
    PreInstalled Scripts, Extras, and Cpanel Options Part 7: Fantastico Detailed Cpanel Tutorial
    Part 3: Analysis and Log Files In this tutorial I will, in detail explain all ....
  9. Cpanel Useful Site Management Tools 2.1
    Part 3 of My 7 Part Tutorial (0)
    This Tutorial will be divided into 7 different parts, and this is the first part, when i get the
    other parts together, i will post the links under here /biggrin.gif" style="vertical-align:middle"
    emoid=":D" border="0" alt="biggrin.gif" /> Enjoy. Part 1: E-mail Management Part 2: Useful Site
    Management Tools Part 4: Analysis/Log Files Part 5: Advanced Tools Part 6: PreInstalled
    Scripts, Extras, and Cpanel Options Part 7: Fantastico Detailed Cpanel Tutorial Part 2.1:
    Useful Site Management Tools In this tutorial I will, in detail explain all of th....
  10. Cpanel Useful Site Management Tools
    Part 2 of My 7 Part Tutorial (0)
    This Tutorial will be divided into 7 different parts, and this is the first part, when i get the
    other parts together, i will post the links under here /biggrin.gif" style="vertical-align:middle"
    emoid=":D" border="0" alt="biggrin.gif" /> Enjoy. Part 1: E-mail Management Part 3: Useful Site
    Management Tools2.1 Part 4: Analysis/Log Files Part 5: Advanced Tools Part 6: PreInstalled
    Scripts, Extras, and Cpanel Options Part 7: Fantastico Detailed Cpanel Tutorial Part 2:
    Useful Site Management Tools In this tutorial I will, in detail explain all of t....
  11. Cpanel E-mail Management
    Part 1 of My 7 Part Tutorial (0)
    This Tutorial will be divided into 7 different parts, and this is the first part, when i get the
    other parts together, i will post the links under here /biggrin.gif" style="vertical-align:middle"
    emoid=":D" border="0" alt="biggrin.gif" /> Enjoy. Part 2: Useful Site Management Tools Part 3:
    Useful Site Management Tools2.1 Part 4: Analysis/Log Files Part 5: Advanced Tools Part 6:
    PreInstalled Scripts, Extras, and Cpanel Options Part 7: Fantastico Detailed Cpanel Tutorial
    Part 1: E-mail Management In this tutorial I will, in detail explain all of th....
  12. How To Save Upload Time In Cpanel
    (37)
    Do not Extract files and then upload them by ftp, try the following (1)open the file manager
    (2)upload the zip or gz format file (3)then extract the file it save the comulation time for
    ftp client and the ftp server.....

    1. Looking for cron, jobs, cron, jobs, cpanel, cron, jobs, cron, jobs, php

Searching Video's for cron, jobs, cron, jobs, cpanel, cron, jobs, cron, jobs, php
advertisement



Cron Jobs - Cron Jobs In Cpanel - Cron Jobs : Cron Jobs using PHP



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE