| View previous topic :: View next topic |
| Author |
Message |
fileup
Joined: 28 Nov 2011 Posts: 26
|
Posted: Jan 19, 2012 9:53 am Post subject: cronjob |
|
|
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 |
|
| Back to top |
|
 |
verzing
Joined: 02 Mar 2011 Posts: 125
|
Posted: Jan 19, 2012 10:10 am Post subject: |
|
|
I think it should be
| Code: | | 0 * * * */home/youusername/public_html/cgi-bin;./cron.pl >/dev/null 2>&1 |
|
|
| Back to top |
|
 |
admin Site Admin

Joined: 22 Mar 2006 Posts: 1281
|
Posted: Jan 19, 2012 10:41 am Post subject: |
|
|
| You should make sure that you're using correct path. |
|
| Back to top |
|
 |
fileup
Joined: 28 Nov 2011 Posts: 26
|
|
| Back to top |
|
 |
nyan
Joined: 28 Oct 2010 Posts: 121
|
Posted: Jan 20, 2012 8:32 pm Post subject: |
|
|
| 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 |
|
| Back to top |
|
 |
fileup
Joined: 28 Nov 2011 Posts: 26
|
Posted: Jan 20, 2012 8:37 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
|