| View previous topic :: View next topic |
| Author |
Message |
hscorp
Joined: 12 Nov 2008 Posts: 143
|
Posted: Dec 01, 2008 3:51 pm Post subject: how can i be sure that cron is working and what does it do? |
|
|
| Code: | 8) Add cron.pl script to your crontab to run it every hour.
Sample: 0 * * * * cd /var/www/cgi-bin;./cron.pl >/dev/null 2>&1 |
how can i be sure its working and what does it do when work?? |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 2106 Location: UFO Lab
|
Posted: Dec 03, 2008 8:25 am Post subject: |
|
|
1) Expiring temp symlinks in /files/folder - check that there're no folders older than Temp Expire time
2) Expiring files |
|
| Back to top |
|
 |
hscorp
Joined: 12 Nov 2008 Posts: 143
|
Posted: Dec 04, 2008 3:18 am Post subject: |
|
|
i set Expire temp links to 24 hours and files does not deleted
some of the files created since 18 NOV
can u give me the instructions again to set up the cron |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 2106 Location: UFO Lab
|
Posted: Dec 04, 2008 8:50 am Post subject: |
|
|
If u have cPanel, there's special section for this. If u have SSH root then use command
then add this line there
| Code: | | 0 * * * * cd /your-path-to-cgi-bin;./cron.pl >/dev/null 2>&1 |
make sure cron.pl is 755.
Alternatively you can run cron.pl from browser using url like http://yoursite.com/cgi-bin/cron.pl , but you will get 500 error - that's correct cause it's not for browsers originally. |
|
| Back to top |
|
 |
hscorp
Joined: 12 Nov 2008 Posts: 143
|
Posted: Dec 04, 2008 2:52 pm Post subject: |
|
|
i added this through the cpanel
| Code: | | 0 * * * * cd /home/maishare/public_html/cgi-bin;./cron.pl >/dev/null 2>&1 |
|
|
| Back to top |
|
 |
ForgottenMemorie
Joined: 17 Nov 2008 Posts: 16
|
Posted: Dec 15, 2008 3:37 pm Post subject: |
|
|
| Did that work then, that last code? |
|
| Back to top |
|
 |
hscorp
Joined: 12 Nov 2008 Posts: 143
|
Posted: Dec 15, 2008 9:53 pm Post subject: |
|
|
| yea i think it's working cause it removed the old files |
|
| Back to top |
|
 |
|