|
#1
|
|||
|
|||
|
Hello.
I would like to create one cron job on my addon domain web site. In CPanel there is this warning: Warning: You need to have a good knowledge of Linux commands before you can use cron jobs effectively. Check your script with your hosting administrator before adding a cron job. But my knowledge of Linux commands is zero... On page that I am creating (http://www.puzzleslogic.com) I need to automatically remove every day (once per day) from one mysql table all entries that have specified date older then 30 days. Best solution for me would be if I can create cron job that will "execute" my php script. Is this possible? |
|
#2
|
|||
|
|||
|
Quote:
Code:
cd /home/<YOURUSERNAME>/public_html/YOURDIR; php -q YOURSCRIPT.php To understand the settings: http://www.reallylinux.com/docs/basiccron.shtml Use the menus in CPanel to select the once/per day option and then tell it at what time to do it. They unfortunately removed the more Unix like interface, so you will have to SSH in to use crontab -l and crontab -e to setup that way.
|
|
#3
|
||||
|
||||
|
I'm pretty sure since he said his knowledge of linux commands is zero, he's not going to have a clue what any of that sentence means.
|
|
#4
|
|||
|
|||
|
Quote:
If I understand it correctly your last sentence about SSH and crontab is related to setting when to run that cron-job so for me no need to understand it as it can be set from CPanel with that web form. |
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cron Job | murtuza_hasan | Pre-Sales Questions | 11 | 06-27-2009 03:50 PM |
| need a cron job... | jWebSolution | Webhosting | 1 | 06-23-2008 11:02 PM |
| Cron Job | osirion | Suggestions | 1 | 01-29-2008 02:39 AM |
| 1 simple cron job question | journeyoftheanimals | Off-Topic | 4 | 01-09-2008 10:12 PM |
| Cron Job | Dwight | Shared Hosting Support | 7 | 07-27-2006 05:10 PM |
All times are GMT -5. The time now is 05:20 AM.










