RegisterRegister    SearchSearch   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AJAX upload progress bar

File sharing script

File mirror script

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

 
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Pro
View previous topic :: View next topic  
Author Message
hscorp



Joined: 12 Nov 2008
Posts: 143

PostPosted: Dec 01, 2008 3:51 pm    Post subject: how can i be sure that cron is working and what does it do? Reply with quote

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
View user's profile Send private message Visit poster's website
PilgrimX182



Joined: 22 Mar 2006
Posts: 2106
Location: UFO Lab

PostPosted: Dec 03, 2008 8:25 am    Post subject: Reply with quote

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

2) Expiring files
Back to top
View user's profile Send private message Visit poster's website
hscorp



Joined: 12 Nov 2008
Posts: 143

PostPosted: Dec 04, 2008 3:18 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
PilgrimX182



Joined: 22 Mar 2006
Posts: 2106
Location: UFO Lab

PostPosted: Dec 04, 2008 8:50 am    Post subject: Reply with quote

If u have cPanel, there's special section for this. If u have SSH root then use command
Code:
crontab -e

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
View user's profile Send private message Visit poster's website
hscorp



Joined: 12 Nov 2008
Posts: 143

PostPosted: Dec 04, 2008 2:52 pm    Post subject: Reply with quote

i added this through the cpanel

Code:
0 * * * * cd /home/maishare/public_html/cgi-bin;./cron.pl >/dev/null 2>&1
Back to top
View user's profile Send private message Visit poster's website
ForgottenMemorie



Joined: 17 Nov 2008
Posts: 16

PostPosted: Dec 15, 2008 3:37 pm    Post subject: Reply with quote

Did that work then, that last code?
Back to top
View user's profile Send private message
hscorp



Joined: 12 Nov 2008
Posts: 143

PostPosted: Dec 15, 2008 9:53 pm    Post subject: Reply with quote

yea i think it's working cause it removed the old files
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Pro All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2005 phpBB Group