Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 03-04-2009, 04:24 PM   #1 (permalink)
Excessive happiness
 
furious_gamer's Avatar
 
Join Date: Jun 2008
Location: Bangalore
Posts: 2,975
Default Need a cron job file to execute the PHP script


Hi guys,
I have a database backup script which works perfectly. Now i need this script to run automatically so that no one is need to take database backup.

Will any of you guys give me a simple cron-file to do this along with a link to how to execute the shell script in the hosting server. Please guys help me....
__________________
My First Android phone : Samsung Galaxy SL i9003 - Rooted & Gingerbread XXKPQ
Updated : superteekz_V2 ROM for XXKPQ.

PS Request

Last edited by furious_gamer; 03-04-2009 at 04:38 PM.
furious_gamer is online now  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 03-04-2009, 04:40 PM   #2 (permalink)
Excessive happiness
 
furious_gamer's Avatar
 
Join Date: Jun 2008
Location: Bangalore
Posts: 2,975
Default Re: Need a cron job file to execute the PHP script

^^ You are talking about Corn Job and i am talking about Cron Job...Please read carefully before you post...
__________________
My First Android phone : Samsung Galaxy SL i9003 - Rooted & Gingerbread XXKPQ
Updated : superteekz_V2 ROM for XXKPQ.

PS Request
furious_gamer is online now  
Old 03-04-2009, 05:43 PM   #3 (permalink)
In Pursuit of "Happyness"
 
kalpik's Avatar
 
Join Date: May 2005
Location: New Delhi
Posts: 3,432
Default Re: Need a cron job file to execute the PHP script

Use wget.. wget http://server.com/path/to/file.php > logfile
__________________
Whenever you find yourself on the side of the majority, it is time to pause and reflect. - Mark Twain
kalpik is offline  
Old 04-04-2009, 01:23 AM   #4 (permalink)
Be CoOl rAp RuLeZ !!!
 
krates's Avatar
 
Join Date: Feb 2007
Posts: 1,967
Default Re: Need a cron job file to execute the PHP script

if you use cpanel or lxadmin there is some option in it to do cron jobs..
__________________
iPhone 3G 16GB + Samsung I450 + Sennheiser CXL 400 + PSP Phat + Samsung NC10 :D

Previous phones: N73ME , W810I , Asus P320
krates is offline  
Old 04-04-2009, 04:16 PM   #5 (permalink)
Excessive happiness
 
furious_gamer's Avatar
 
Join Date: Jun 2008
Location: Bangalore
Posts: 2,975
Default Re: Need a cron job file to execute the PHP script

Quote:
Originally Posted by kalpik View Post
Use wget.. wget http://server.com/path/to/file.php > logfile
Will use it....

Quote:
Originally Posted by krates View Post
if you use cpanel or lxadmin there is some option in it to do cron jobs..
Yes, my hosting plan has a cpanel and hurrah! I see a option called Cron Manager there.. Now what i need to do is just write the command and set the interval...
__________________
My First Android phone : Samsung Galaxy SL i9003 - Rooted & Gingerbread XXKPQ
Updated : superteekz_V2 ROM for XXKPQ.

PS Request
furious_gamer is online now  
Old 29-04-2009, 09:27 AM   #6 (permalink)
Who stole my Alpaca!
 
FilledVoid's Avatar
 
Join Date: Jan 2005
Location: Kerala
Posts: 2,020
Default Re: Need a cron job file to execute the PHP script

Reporting Spammer shoe salesman after Rajkumars post. ^
__________________
The Ultimate Chess Strategy : "Hit Hard, Hit Fast and Hit Often"
FilledVoid is offline  
Old 05-08-2009, 10:15 AM   #7 (permalink)
Right Off the Assembly Line
 
Join Date: Aug 2008
Posts: 35
Default Re: Need a cron job file to execute the PHP script

Quote:
Originally Posted by rajkumar_pb View Post
Hi guys,
I have a database backup script which works perfectly. Now i need this script to run automatically so that no one is need to take database backup.

Will any of you guys give me a simple cron-file to do this along with a link to how to execute the shell script in the hosting server. Please guys help me....
exactly my problem.
I wrote a backup.php script which dumps the data into a file. Then I email this file as attachment to a backup gmail id.
saved for ever!
On my system I have a batch script which executes iexplorer.exe <url of the php file>
And i have used windows scheduler to run this batch script.

Regards,
Mohit
amohit is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Sujeet
- by gforz
- by soumya

Advertisement




All times are GMT +5.5. The time now is 03:11 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2