Quick Login   
 
Register AdminFusion Tutorials
 
Featured Sponsors


One.com Domain and Hosting


Register
Forum of the Month
Australian Webmaster
fotm

A webmaster forum specifically catering for Australian site owners. We discuss site development, marketing and management issues.

Tag Cloud
Latest Threads
Forum Stats
7,900 Members
165,094 Posts
41 Users Online

Please welcome our newest member, Jors308932!

Affiliates
Go Back AdminFusion » Getting Started » Software » Cron Help
Welcome to the AdminFusion. AdminFusion is the ultimate resource for forum administrators and moderators. With exclusive articles, interviews with the experts, free downloadable skins, and the revolutionary post exchange system - PostFusion, AdminFusion is the place to go for all of your forum needs.  By joining AdminFusion, you will become part of a thriving admin community and immediately gain access to all of these resources. Registration is fast, simple and absolutely free so please join us today!
Want more than our forums? Try these: Post Fusion Forum Matrix
Old 05-24-2007, 10:42 PM   #1

Jolteon's Avatar

Title: Forum Junkie

Points: 18,082, Level: 41Points: 18,082, Level: 41Points: 18,082, Level: 41
Level up: 42%, 868 Points neededLevel up: 42%, 868 Points neededLevel up: 42%, 868 Points needed
Activity: 24%Activity: 24%Activity: 24%

Join Date: Feb 2006

Posts: 3,623

Location: Holmfirth, England

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?
__________________
http://EasyToHide.Info
Visit my proxy for anonymous surfing!

Reply With Quote
Old 05-25-2007, 12:39 AM   #2

Title: Member

Points: 1,791, Level: 11Points: 1,791, Level: 11Points: 1,791, Level: 11
Level up: 12%, 59 Points neededLevel up: 12%, 59 Points neededLevel up: 12%, 59 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Jun 2006

Posts: 108

Location: California, US

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
Reply With Quote
Old 05-25-2007, 12:13 PM   #3

Jolteon's Avatar

Title: Forum Junkie

Points: 18,082, Level: 41Points: 18,082, Level: 41Points: 18,082, Level: 41
Level up: 42%, 868 Points neededLevel up: 42%, 868 Points neededLevel up: 42%, 868 Points needed
Activity: 24%Activity: 24%Activity: 24%

Join Date: Feb 2006

Posts: 3,623

Location: Holmfirth, England

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.
__________________
http://EasyToHide.Info
Visit my proxy for anonymous surfing!

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 10:25 PM
PhpAdsNew Cron Maintenance Script demojames Software 10 08-01-2006 07:39 PM
Is PF on a cron? Jemrada PostFusion Chat 1 04-21-2006 12:22 AM

AdminFusion

All times are GMT +1. The time now is 05:13 AM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0 © 2005-2008 AdminFusion - All Rights Reserved



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