Friday, 15 March 2013

cron - How to sync crontab with DirectAdmin backwards? -



cron - How to sync crontab with DirectAdmin backwards? -

i have few hundred cronjobs in directadmin.

i need string_replace every cronjob in directadmin.

i managed alter cronjobs crontab -e, cronfile in /var/spool/cron correct.

the problem in directadmin old cronjobs reside.

my question how sync string-replaced crons directadmin ?

so there way read changed /var/spool/cron-file directadmin ?

you improve not utilize crontab -u userfoo -e alter crons directly, because directadmin unchanged.

this better:

step1: open /usr/local/directadmin/data/users/userfoo/crontab.conf , add “0=”, “1=”, “2=”, etc. before every line: (don't utilize before comment line):

1=1 * * * * /usr/local/bin/php /home/userfoo/domains/www.domfoo.nl/public_html/foo1.php 2=* 2 * * * /usr/local/bin/php /home/userfoo/domains/www.domfoo.nl/public_html/foo2.php

step2: go directadmin, cronjobs , click right-below on save (this re-create crons /var/spool/cron/)

all crons active on-the-fly.

cron crontab directadmin

No comments:

Post a Comment