• About Me
  • Best Of
  • Contact Me
  • Forum

Jay Gaulard

  • Home & Living
    • Automotive & Mechanical
    • Carpentry & Building
    • Entertainment
    • Firewood & Heating
    • Gardening
    • Home Improvement
    • Lawn Care & Landscaping
    • Pets & Animals
  • Fitness & Recreation
    • Brazilian Jiu-Jitsu (BJJ)
    • Bushcraft & Camping
    • Hiking & Walking
  • Nature & Outdoors
    • Trees & Shrubs
    • Weather & Seasons
  • Technology & Internet
  • Travel & Destinations
  • Writing & Blogging
    • Ramblings & Opinion
You are here: Home / Technology & Internet / Setting Up a Cron Job in Plesk

Setting Up a Cron Job in Plesk

December 13, 2007

I have been putting this off for a while. For some time, I have had the need to set up a cron job to run my website sitemap generators. Currently, I do them by hand. Every few days, I log in to each one and run the generator. This gets a little tedious, because I have to do about thirty of them.

I have always known there is a function in the sitemap generators that allows a cron job to kick the generators on. All I had to do was set it up. Now, I am not all that good with that little black screen…SSH. I mean, I use PuTTY for some things, but not all that much. I would rather use a nice GUI to take care of these tasks.

Well, it just so happens that Plesk offers that GUI. By the way, I am talking about Plesk 8.1 here.

Ok, the first thing I did was to login to Plesk. Then, I clicked on, “Domains.” I clicked the domain I was interested in setting up a cron job for. Next, I clicked the “Scheduled Tasks” icon and then the system user. Once I was done clicking all that stuff, I clicked the “Schedule a Task For …” That’s the easy part. Well, the rest is easy too, but at least I was at the place I had to be to set up the job.

Once I was at the task page, there were a few things I had to fill in to set up the job. First, I checked off “enabled.” I think that’s pretty self explanatory.

Basically, I wanted this php script to run every two days at 4AM. It’s pretty simple. For the first field, labeled, “Minute,” I put in a “0.” That will start at zero minutes of the hour. For the “Hour” field, I put in a “4.” This will start the script at the fourth hour of the day. It is based on the 24 hour clock. Ignore the periods after the digits. I put them in there just for grammar’s sake. For the “Day of the Month” field, I put in an “*.” I guess that means any day. I also put in an “*” for the “Month” field. For the “Day of the Week” field, I put in a “*/2.” This means that the script will be initiated every two days. For the last field, “Command,” I put in the path to the cron file in the script. That is something you will need to get from the script itself.

This was the first time I did this. If there is anything I missed, anything I did wrong or anything that might have been done more efficiently, please let me know by way of comment.

Related posts:

  1. Setting Up a Cron Job in Plesk – Part 2
  2. Alternative To Cron – Windows Scheduler
  3. WordPress vs. Drupal
  4. Setting Up A Lawn Hammock
  5. Social Networking / Virtual Community Scripts

Filed Under: Technology & Internet

What’s Next? Email Updates!

If you enjoyed reading this post as much as I enjoyed writing it, why not sign up to receive my posts by email? It's free and you can unsubscribe at any time!

Comments

  1. John says

    January 23, 2017 at 4:08 pm

    My only question is: Isn’t there some things to configure on the server side. That is if you are running a dedicated server. Great job explaining the plesk version btw.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

CONNECT WITH ME

  • Email
  • Facebook
  • Google+
  • RSS
  • Twitter

RECEIVE MY POSTS BY EMAIL!

Interested in receiving my posts by email? This is your chance! Simply place your email address in the box below and I'll deliver each and every post I write directly to your inbox.

MOST POPULAR POSTS

  • Putting Wooden Sides On A Utility Trailer I am sure you are all just thrilled about my new utilit...
  • How to Fix a Symmons Shower Valve That Leaks What I'm about to share is for the greater good. I've d...
  • Building Wooden Sides For a Utility Trailer NOTE: Please read comments down below. This isn't a goo...
  • Assembling a John Deere 7-Bushel Rear Bagger I must say, this John Deere ride-on mower has been a re...
  • What Is a BMW Standard Scope? A few posts ago, I mentioned that I had to bring my car...
  • How Do I Get Rid of the Smell in My Brand New Wool Blanket? Question: All I can say is that this thing stinks. I ca...
  • Installing A Water Spigot In The Garage Valentine's day was here. I wanted to wash the car and...
  • Replacing a Stem Cartridge Spindle For Symmons Temptrol Shower Valve Wouldn't you just know it. As I was writing yesterday's...
  • Installing Lally Columns and Footings for Girder Beam One of the first things I noticed while looking at this...
  • Installing New Wooden Trailer Sides I know I've been down this road before, but I thought I...

Recent Comments

  • Jay Gaulard on Installing a Through-the-Wall Wood Stove
  • James on Installing a Through-the-Wall Wood Stove
  • Greg on Filling In a Basement Crawl Space
  • Swoopadoop on Using a Belt Sander to Sand Walls
  • Dani Lamirand on How to Effectively Move Warm Wood Stove Air From One Room to Another

Copyright © 2021 · Jay Gaulard My Personal Blog Blog · About · Best Of · Contact · Privacy / Terms · Sitemap