Automating Functions with cron Jobs

Automating Functions with cron Jobs

Think of cronas being short for chronology,
and it will help you see that it is for jobs that
are performed automatically on a fixed time
 schedule by theserver’s internal clock.
 It’s like setting the timer to switch the heating on
before you get up in the morning or setting your
 DVR to record the sameshow every week.



The command for a cron job basically has two parts:
✓ The command that the server should run:This means giving it the full
path to the file that you need to run and any switches that are needed to
perform the function. The software you run on your website should provide the correct switches to include.
✓ The exact time and schedule on which the job should be executed:
There is huge flexibility built into this system, meaning you can schedule
the task to run exactly when you want on whatever schedule you want.
cPanel provides an easy configuration screen for cron jobs. Here’s how to
use it:
1. Open cPanel and log in using the details your host gave you when you
signed up.
2. Scroll to the Advanced section and click Cron Jobs.
3. If you want to be e-mailed every time any cron job runs, enter your
e-mail address in the first box and click Update Email.
4. Select the schedule on which you wish the command to run.
There are some common settings to select from, or you can create your
own schedule.
You must fill every box when setting the schedule; otherwise the cron
job creation will fail.
5. Enter the command you want the server to run into the Command box.
You must add the full server path to the file you want to run in the cron
job. The server cannot guess which folder the file might be in!
6. Click Add New Cron Job to create the job and add it to the cron.
Related Posts:
  • Session Hijacking-Protection Session hijacking isn't new to computer security. The term is most commonly used to describe the process of a TCP connection taken over by a sequence prediction attack. In such an attack, the attacker gains control of … Read More
  • Web Hosting or DNS It is common sense that if a web site is down it cannot get spidered, but we’ll state it regardless:When a site is down, it cannot get spidered.And when your domain’s designated DNS is down, yoursite cannot get spidered ei… Read More
  • EMAIL BULK SERVICE Email marketing is a powerful channel but also one that presents many questions and difficulties. In their 2012 Email marketing benchmark, marketingsherpa surveyed 2,735 companies and asked them to rank the significance o… Read More
  • Top website design tips website programmers should be to make the website experience as easy and pleasant for the user as possible. Clearly, well-designed pages with easily navigable layout are central to this, but they're not the whole story.… Read More
  • Securing FTP-How  Securing FTP You can make your FTP uploads and downloads more secure in one of two ways: through Secure File Transfer Protocol SFTP or Transport Layer Security TLS. SFTPSFTP is a more secure way of uploading and downlo… Read More
  • Web and Database Port Listing Table A-1. HTTP/1.1 Methods and Field Definitions Web and Database Port Listing Port Server 66 Oracle SQL*Net 80 Hyper Text Transfer Protocol (HTTP) 81 HTTP Proxy, Alternativ… Read More
  • WEB DESIGN AND MARKETING-FOR BUSINESS WEBSITES WEB DESIGN FOR BUSINESS WEBSITES At a minimum, users should see a thumbnail of the product. This does not have to be elaborate.  To avoid forcing users to squint, make sure that  the image is at least 150 pixels w… Read More
  • purchase domains Domain Names | Register Your Domain Name In India - GoDaddy in.godaddy.com/ GoDaddy makes registering Domain Names fast, simple, and affordable. Find out why so many business owners chose GoDaddy to be their … Read More
  • How to make Web filenames How to make Web filenames When you tell a Windows program and hosting to save your file as a text document, it saves just the actual text characters that you see onscreen, without any formatting commands. The Windows progra… Read More
  • Automating Functions with cron Jobs Automating Functions with cron Jobs Think of cronas being short for chronology, and it will help you see that it is for jobs that are performed automatically on a fixed time  schedule by theserver’s internal clock. &nb… Read More
  • Server-Based Anti-Spam (adsbygoogle = window.adsbygoogle || []).push({}); The single biggest hurdle when hosting your own e-mail addresses is filtering spam. If you have an account with Gmail, Yahoo! Mail, or one of the other many free e-… Read More
  • What is Internet domain? Internet Domains  In database design and management, the set of valid values for a given attribute. For example, the domain for the attribute AREA-CODE might be the list of all valid three-digit numeric telephone are… Read More
  • Web hosting in the cloud Web hosting in the cloud Cloud computing is all the rage these days  and the hosting industry is no exception.  The basic idea of cloud computing is that you join multiple computers together to  provide faste… Read More
  • website domain names Web Hosting - UK Website Hosting and Domain Names - LCN.com Buy reliable UK web hosting packages, powerful server solutions, and great value domain names from LCN.com. UK based technical support on hand 7 days a week. Domai… Read More
  • How to make a website with traffic How to make a website with traffic 1. Keep it Simple - Make sure the design is simple, clear and pleasing to the eyes. Don't overcrowd it. 2. Multiple Pages - If possible, divide the website into several pages and access … Read More