XFileSharing Pro - how make cron work?

Message
Author
rewater
Posts: 10
Joined: Dec 29, 2010 11:41 pm

how make cron work?

#1 Postby rewater » Feb 14, 2011 5:25 pm

hi sry for bad english
when i installed script i changed "cgi-bin" to "hoka"
so is this code right?

Code: Select all

cd /home/seedfly/www/hoka;./cron.pl >/dev/null 2>&1
"seedfly" is my site user
if it right?
how i can add it in c panel?
or sshØŸ
thx

rewater
Posts: 10
Joined: Dec 29, 2010 11:41 pm

#2 Postby rewater » Feb 15, 2011 1:22 am

i entered ssh
i wrote

Code: Select all

crontab -e
and put this line

Code: Select all

0 * * * * cd /home/seedfly/www/hoka;./cron.pl >/dev/null 2>&1
the expired files not deleted yet :(

rewater
Posts: 10
Joined: Dec 29, 2010 11:41 pm

#3 Postby rewater » Feb 15, 2011 8:19 pm

can any one help me?

admin
Site Admin
Posts: 1839
Joined: Mar 22, 2006 12:32 pm

#4 Postby admin » Feb 16, 2011 7:37 am

With this cron command, cron.pl will be started every hour.

rewater
Posts: 10
Joined: Dec 29, 2010 11:41 pm

#5 Postby rewater » Feb 16, 2011 10:04 am

okay but the expired files not deleted yet :(

ankurs
Posts: 1054
Joined: Mar 10, 2009 2:34 am

#6 Postby ankurs » Feb 16, 2011 10:07 am

rewater wrote:okay but the expired files not deleted yet :(
check your settings again

rewater
Posts: 10
Joined: Dec 29, 2010 11:41 pm

#7 Postby rewater » Feb 16, 2011 10:10 am

Expire files 30 days after last download
but the xpired files still on the server :(

PowerChaos
Posts: 521
Joined: Dec 19, 2009 5:12 pm

#8 Postby PowerChaos » Feb 16, 2011 11:12 pm

can you run the cron manaul and see if the files get removed then

if not , then your cronjob permisions are wrong

check cronjob permisions and crontab settings

a other way to test it later then is by creating the symlinks (direct links) and let them expire realy fast ( min is 1 hour if i am not wrong)

Greets From PowerChaos

rewater
Posts: 10
Joined: Dec 29, 2010 11:41 pm

#9 Postby rewater » Feb 17, 2011 12:20 am

PowerChaos wrote:can you run the cron manaul and see if the files get removed then

if not , then your cronjob permisions are wrong

check cronjob permisions and crontab settings

a other way to test it later then is by creating the symlinks (direct links) and let them expire realy fast ( min is 1 hour if i am not wrong)

Greets From PowerChaos
i tries to open it from explorer it give me error 500
but the permisions is 755
what can i do step by step plz :)