XFileSharing Pro - crone work

Message
Author
dollarek
Posts: 46
Joined: Jan 11, 2008 5:09 pm

crone work

#1 Postby dollarek » Feb 12, 2008 5:42 am

I am having problem with setting up a cron job :( i use plesk 8


this screen shows how i setted it up :(. ..

Image



And where do i edit to change text that is displayed after link expires?

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

#2 Postby PilgrimX182 » Feb 12, 2008 6:50 am

1. What problem with CRON??
You setted it a bit wrong. Should be

Code: Select all

cd /var/www/vhosts/hotdir.eu/cgi-bin;./cron.pl >/dev/null 2>&1
2. Expired text
You can change it in .htaccess for FileServer

dollarek
Posts: 46
Joined: Jan 11, 2008 5:09 pm

#3 Postby dollarek » Feb 12, 2008 9:51 am

Ok, thank you will test it today.

Namaless
Posts: 107
Joined: Apr 20, 2008 12:10 pm

#4 Postby Namaless » May 31, 2008 11:19 pm

PilgrimX182 wrote:1. What problem with CRON??
You setted it a bit wrong. Should be

Code: Select all

cd /var/www/vhosts/hotdir.eu/cgi-bin;./cron.pl >/dev/null 2>&1
2. Expired text
You can change it in .htaccess for FileServer
Sorry, but this code line set automatic pruning files?
Or need to setup cron?

Regards.

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

#5 Postby PilgrimX182 » Jun 02, 2008 7:51 am

Code: Select all

cd /var/www/vhosts/hotdir.eu/cgi-bin;./cron.pl >/dev/null 2>&1
this code should be inside crontab joblist file. only with your correct path.

Namaless
Posts: 107
Joined: Apr 20, 2008 12:10 pm

#6 Postby Namaless » Jun 02, 2008 8:06 am

PilgrimX182 wrote:

Code: Select all

cd /var/www/vhosts/hotdir.eu/cgi-bin;./cron.pl >/dev/null 2>&1
this code should be inside crontab joblist file. only with your correct path.
Please help me.. How To add into crontab joblist?

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

#7 Postby PilgrimX182 » Jun 02, 2008 8:52 am

lol. If you have cPanel, there's special page Cron Jobs.
If you have SSH console, you can type "crontab -e" and then edit crontab jobs as a text file.

Namaless
Posts: 107
Joined: Apr 20, 2008 12:10 pm

#8 Postby Namaless » Jun 02, 2008 9:23 am

PilgrimX182 wrote:lol. If you have cPanel, there's special page Cron Jobs.
If you have SSH console, you can type "crontab -e" and then edit crontab jobs as a text file.
Thanks, added this line in crontab:

Code: Select all

0       *       * * *   /var/www/virtual/domain.com/cgi-bin/cron.pl >/dev/null 2>&1
It's correctly?

Thanks.

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

#9 Postby PilgrimX182 » Jun 02, 2008 11:58 am

Nopes. It's black on white: "cd" first, then run ./cron.pl. Cause it need modules from local folder.

Namaless
Posts: 107
Joined: Apr 20, 2008 12:10 pm

#10 Postby Namaless » Jun 02, 2008 12:12 pm

PilgrimX182 wrote:Nopes. It's black on white: "cd" first, then run ./cron.pl. Cause it need modules from local folder.
Thanks.. sorry for my low know linux system.

Fixed.. now for testing if works correclty need to waiting expired files?

Regards.