Est. 2003
Home Help Login Register
News: Welcome to ZboX Webhosting.
10 Megs

10 MB Disk
1 GB Transfer
$10.00 per year
25 Megs

25 MB Disk
2 GB Transfer
$25.00 per year
50 Megs

50 MB Disk
3 GB Transfer
$50.00 per year
75 Megs

75 MB Disk
4 GB Transfer
$75.00 per year
500 Megs

500 MB Disk
10 GB Trans
$100.00 yr.

+  ZboX Webhosting Est. 2003. Now in our Fifth year!
|-+  Help!
| |-+  Problems and/or Questions
| | |-+  Cron Jobs?
0 Members and 0 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Cron Jobs?  (Read 571 times)
Madrabbit
Guest


Email
Cron Jobs?
« on: December 09, 2003, 05:49:45 AM »

Im up to my eyes in php scripts LOL.  Im setting up a news feed (RSS) to work in a PHPBB Forum and need to learn something about Cron jobs.  I understand its a script that runes by itself at designated times.   I need to know how to set one up.  My C panel is set up for them.  
Logged
ZboX
Founder
Administrator
Posting Maniac
*****
Offline Offline

Posts: 1581


What 'ya got there??


Cron Jobs?
« Reply #1 on: December 09, 2003, 11:42:38 PM »

Hi Mike,
Cron is basically a task scheduler. LOTS of different things you can do with it. The following below is from the Cpanel's documentation which can be found here:

http://www.cpanel.net/docs/cp/index.html

This will give you the basics. If you have something more specific you need done post it in this thread and I'll get the answer for ya.

Bert
------------------------------

Cron jobs allow you to automate repetitive tasks on the server that hosts your web site. This is a powerful tool that allows you to take a hands-free approach to repetitive tasks. For example, you could add a cron job that automatically copies a MySQL database to a separate location on your site as a backup.

There are two different modes you can use to add a cron job:

Standard - Provides a range of pre-set options that you can choose. This is the simplest method and is recommended.

Advanced (Unix Style) - Provides the regular Unix style cron options. Recommended for users who are used to this method of entering cron entries.

Warning: You need to have a good knowledge of Linux commands before you can use cron jobs effectively. Check your script with your hosting administrator before adding a cron job.

To add or modify a cron job:

Click on the Cron jobs button on the home page.

If you want to use the Standard mode, click on the Standard button.


Enter the e-mail address to send the results of running the cron job in the top field.

Enter the command the you want to run in the Command to run field.

Click on one option from each of the available lists.

Click on the Save Crontab button. Your cron job has now been added or updated.

Note: You can always click on the Reset Changes button to change the cron job back to whatever it was before you started entering information.


If you want to use the Advanced mode, click on the Advanced (Unix Style) button.


Enter the times for the cron job in the Minute, Hour, Day, Month, or Weekday fields. Refer to the following page to check exactly how to enter values in these fields - http://www.redhat.com/support/resources/ti.../cron/cron.html.

Enter the cron job script in the Command field.

Click on the Commit Changes button. Your cron job has now been added or updated.

Note: You can always click on the Reset Changes button to change the cron job back to whatever it was before you started entering information.
« Last Edit: December 09, 2003, 11:44:01 PM by ZboX » Logged

Homepage / Community: http://zboxhosting.com

Contact: sales@zboxhosting.com
"When all is said and done, there's nothing left to say or do!"
Madrabbit
Guest


Email
Cron Jobs?
« Reply #2 on: December 13, 2003, 09:01:59 PM »

Thanks Bert :)
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  


Login with username, password and session length

ZboX Webhosting Est. 2003. Now in our Fifth year! | Powered by SMF 1.0.10.
© 2005, Simple Machines LLC. All Rights Reserved.
Page created in 0.089 seconds with 22 queries.