Quick Login   
 
Register AdminFusion Tutorials Post Fusion Forum Matrix
 
Old 05-24-2007, 09:42 PM   #1
Forum Junkie
 
Jolteon's Avatar
 
Join Date: Feb 2006
Location: Holmfirth, England
Posts: 3,699
Jolteon has a brilliant futureJolteon has a brilliant futureJolteon has a brilliant futureJolteon has a brilliant futureJolteon has a brilliant futureJolteon has a brilliant futureJolteon has a brilliant futureJolteon has a brilliant futureJolteon has a brilliant futureJolteon has a brilliant futureJolteon has a brilliant future
Send a message via MSN to Jolteon
Cron Help

I am setting up a forum demo thing for MidasHost;s Customers section. Not quite as expansive as AF's but I like giving it a shot. I am in need of a cron script I can run every XX hours to delete the database, and reload a specified one to reset the forums to default. All the forums are in one database, so I just need it to delete and remove one DB.

Any help?
__________________
Ack, no currently active projects
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Jolteon is offline   Reply With Quote
Old 05-24-2007, 11:39 PM   #2
Member
 
Join Date: Jun 2006
Location: California, US
Posts: 108
Tikitiki has a spectacular aura aboutTikitiki has a spectacular aura about
You can put all the code in a php file (or whatever file extension you use) that deletes the tables/database and then runs the specified file that installs it.

Then you can go into cPanel and (in the simple mode) just set the hours to whatever and leave everything else the same. Also remember to set the script

I would go into more detail, but I'm not how sure how computer literate you are
Tikitiki is offline   Reply With Quote
Old 05-25-2007, 11:13 AM   #3
Forum Junkie
 
Jolteon's Avatar
 
Join Date: Feb 2006
Location: Holmfirth, England
Posts: 3,699
Jolteon has a brilliant futureJolteon has a brilliant futureJolteon has a brilliant futureJolteon has a brilliant futureJolteon has a brilliant futureJolteon has a brilliant futureJolteon has a brilliant futureJolteon has a brilliant futureJolteon has a brilliant futureJolteon has a brilliant futureJolteon has a brilliant future
Send a message via MSN to Jolteon
Well. I know how to use cPanel to setup the cron jobs. I just do not know how to write the script for a cron job.
__________________
Ack, no currently active projects
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Jolteon is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

 
Posting Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is this cron job correct? Cool_Guy Off Topic 3 04-14-2007 09:25 PM
PhpAdsNew Cron Maintenance Script demojames Software 10 08-01-2006 06:39 PM
Is PF on a cron? Jemrada PostFusion Chat 1 04-20-2006 11:22 PM

AdminFusion

All times are GMT +1. The time now is 07:07 PM. Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0

© 2009 AdminFusion | Advertising Opportunities | Legal | A member of the Crowdgather Forum Community
 
From:
Title:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77