XFileSharing Pro - how can i be sure that cron is working and what does it do?

Message
Author
hscorp
Posts: 143
Joined: Nov 12, 2008 5:36 pm

how can i be sure that cron is working and what does it do?

#1 Postby hscorp » Dec 01, 2008 3:51 pm

Code: Select all

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??

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » Dec 03, 2008 8:25 am

1) Expiring temp symlinks in /files/folder - check that there're no folders older than Temp Expire time

2) Expiring files

hscorp
Posts: 143
Joined: Nov 12, 2008 5:36 pm

#3 Postby hscorp » Dec 04, 2008 3:18 am

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

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#4 Postby PilgrimX182 » Dec 04, 2008 8:50 am

If u have cPanel, there's special section for this. If u have SSH root then use command

Code: Select all

crontab -e
then add this line there

Code: Select all

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.

hscorp
Posts: 143
Joined: Nov 12, 2008 5:36 pm

#5 Postby hscorp » Dec 04, 2008 2:52 pm

i added this through the cpanel

Code: Select all

0 * * * * cd /home/maishare/public_html/cgi-bin;./cron.pl >/dev/null 2>&1

ForgottenMemorie
Posts: 16
Joined: Nov 17, 2008 8:57 pm

#6 Postby ForgottenMemorie » Dec 15, 2008 3:37 pm

Did that work then, that last code?

hscorp
Posts: 143
Joined: Nov 12, 2008 5:36 pm

#7 Postby hscorp » Dec 15, 2008 9:53 pm

yea i think it's working cause it removed the old files