XFileSharing Pro - cronjob

Message
Author
fileup
Posts: 26
Joined: Nov 28, 2011 3:32 pm

cronjob

#1 Postby fileup » Jan 19, 2012 9:53 am

i have installed directadmin on my server and set cronjobs likt this:

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

0 0 * * * /home/mydomain/cgi-bin;./cron_deleted_email.pl >/dev/null 2>&1

is it correct?or not?because it seems it's not working

verzing
Posts: 174
Joined: Mar 02, 2011 7:00 pm

#2 Postby verzing » Jan 19, 2012 10:10 am

I think it should be

Code: Select all

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

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

#3 Postby admin » Jan 19, 2012 10:41 am

You should make sure that you're using correct path.

fileup
Posts: 26
Joined: Nov 28, 2011 3:32 pm

#4 Postby fileup » Jan 19, 2012 11:21 am

in my directadmin control panel here is where the cron.pl is located in:

http://www.mydomain.com:2222/CMD_FILE_M ... in/cron.pl

so what should i enter in cron tabs?please help me on this

nyan
Posts: 163
Joined: Oct 28, 2010 8:01 pm

#5 Postby nyan » Jan 20, 2012 8:32 pm

log in to the server via your root to see the full path (login with ssh details via winscp or filezilla or putty) with most control panels the http files are somewhere in /home/user/cgi-bin or /var/www/vhosts/domain/cgi-bin

fileup
Posts: 26
Joined: Nov 28, 2011 3:32 pm

#6 Postby fileup » Jan 20, 2012 8:37 pm

cd /home/user/domains/youredomain/public_html/cgi-bin;./cron.pl >/dev/null 2>&1

cd /home/user/domains/youredomain/public_html/cgi-bin;./cron_deleted_email.pl >/dev/null 2>&1