cron job not running from cron.daily
Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
I have added a job (register-dns.cron
) to /etc/cron.daily/
, but it is not running. The result of some testing is shown below.
#â³ ls -l /etc/cron.daily/
total 28
-rwxr-xr-x 18 root root 1474 Sep 13 2017 apt-compat
-rwxr-xr-x 13 root root 355 Oct 25 2016 bsdmainutils
-rwxr-xr-x 18 root root 1597 Feb 22 2017 dpkg
-rwxr-xr-x 6 root root 4125 Feb 10 08:26 exim4-base
-rwxr-xr-x 18 root root 249 May 17 2017 passwd
-rwxr-xr-x 3 root root 66 Apr 17 11:57 register-dns.cron
#â³ (cd /; run-parts --report --verbose /etc/cron.daily)
run-parts: executing /etc/cron.daily/apt-compat
run-parts: executing /etc/cron.daily/bsdmainutils
run-parts: executing /etc/cron.daily/dpkg
run-parts: executing /etc/cron.daily/exim4-base
run-parts: executing /etc/cron.daily/passwd
#â³ (cd /; run-parts --report --verbose --reverse /etc/cron.daily)
run-parts: executing /etc/cron.daily/passwd
run-parts: executing /etc/cron.daily/exim4-base
run-parts: executing /etc/cron.daily/dpkg
run-parts: executing /etc/cron.daily/bsdmainutils
run-parts: executing /etc/cron.daily/apt-compat
cron
add a comment |Â
up vote
2
down vote
favorite
I have added a job (register-dns.cron
) to /etc/cron.daily/
, but it is not running. The result of some testing is shown below.
#â³ ls -l /etc/cron.daily/
total 28
-rwxr-xr-x 18 root root 1474 Sep 13 2017 apt-compat
-rwxr-xr-x 13 root root 355 Oct 25 2016 bsdmainutils
-rwxr-xr-x 18 root root 1597 Feb 22 2017 dpkg
-rwxr-xr-x 6 root root 4125 Feb 10 08:26 exim4-base
-rwxr-xr-x 18 root root 249 May 17 2017 passwd
-rwxr-xr-x 3 root root 66 Apr 17 11:57 register-dns.cron
#â³ (cd /; run-parts --report --verbose /etc/cron.daily)
run-parts: executing /etc/cron.daily/apt-compat
run-parts: executing /etc/cron.daily/bsdmainutils
run-parts: executing /etc/cron.daily/dpkg
run-parts: executing /etc/cron.daily/exim4-base
run-parts: executing /etc/cron.daily/passwd
#â³ (cd /; run-parts --report --verbose --reverse /etc/cron.daily)
run-parts: executing /etc/cron.daily/passwd
run-parts: executing /etc/cron.daily/exim4-base
run-parts: executing /etc/cron.daily/dpkg
run-parts: executing /etc/cron.daily/bsdmainutils
run-parts: executing /etc/cron.daily/apt-compat
cron
1
Have you try to remove.cron
?
â Romeo Ninov
Apr 22 at 16:01
@RomeoNinov Yes I did, see my answer bellow. But thanks any ways.
â ctrl-alt-delor
Apr 22 at 21:18
Not off topic. the answer is useful. Knowing thatrun-parts
has some arbitrary rule to only allow some characters in filename, is useful.
â ctrl-alt-delor
Jul 10 at 6:03
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I have added a job (register-dns.cron
) to /etc/cron.daily/
, but it is not running. The result of some testing is shown below.
#â³ ls -l /etc/cron.daily/
total 28
-rwxr-xr-x 18 root root 1474 Sep 13 2017 apt-compat
-rwxr-xr-x 13 root root 355 Oct 25 2016 bsdmainutils
-rwxr-xr-x 18 root root 1597 Feb 22 2017 dpkg
-rwxr-xr-x 6 root root 4125 Feb 10 08:26 exim4-base
-rwxr-xr-x 18 root root 249 May 17 2017 passwd
-rwxr-xr-x 3 root root 66 Apr 17 11:57 register-dns.cron
#â³ (cd /; run-parts --report --verbose /etc/cron.daily)
run-parts: executing /etc/cron.daily/apt-compat
run-parts: executing /etc/cron.daily/bsdmainutils
run-parts: executing /etc/cron.daily/dpkg
run-parts: executing /etc/cron.daily/exim4-base
run-parts: executing /etc/cron.daily/passwd
#â³ (cd /; run-parts --report --verbose --reverse /etc/cron.daily)
run-parts: executing /etc/cron.daily/passwd
run-parts: executing /etc/cron.daily/exim4-base
run-parts: executing /etc/cron.daily/dpkg
run-parts: executing /etc/cron.daily/bsdmainutils
run-parts: executing /etc/cron.daily/apt-compat
cron
I have added a job (register-dns.cron
) to /etc/cron.daily/
, but it is not running. The result of some testing is shown below.
#â³ ls -l /etc/cron.daily/
total 28
-rwxr-xr-x 18 root root 1474 Sep 13 2017 apt-compat
-rwxr-xr-x 13 root root 355 Oct 25 2016 bsdmainutils
-rwxr-xr-x 18 root root 1597 Feb 22 2017 dpkg
-rwxr-xr-x 6 root root 4125 Feb 10 08:26 exim4-base
-rwxr-xr-x 18 root root 249 May 17 2017 passwd
-rwxr-xr-x 3 root root 66 Apr 17 11:57 register-dns.cron
#â³ (cd /; run-parts --report --verbose /etc/cron.daily)
run-parts: executing /etc/cron.daily/apt-compat
run-parts: executing /etc/cron.daily/bsdmainutils
run-parts: executing /etc/cron.daily/dpkg
run-parts: executing /etc/cron.daily/exim4-base
run-parts: executing /etc/cron.daily/passwd
#â³ (cd /; run-parts --report --verbose --reverse /etc/cron.daily)
run-parts: executing /etc/cron.daily/passwd
run-parts: executing /etc/cron.daily/exim4-base
run-parts: executing /etc/cron.daily/dpkg
run-parts: executing /etc/cron.daily/bsdmainutils
run-parts: executing /etc/cron.daily/apt-compat
cron
asked Apr 18 at 10:28
ctrl-alt-delor
8,76031947
8,76031947
1
Have you try to remove.cron
?
â Romeo Ninov
Apr 22 at 16:01
@RomeoNinov Yes I did, see my answer bellow. But thanks any ways.
â ctrl-alt-delor
Apr 22 at 21:18
Not off topic. the answer is useful. Knowing thatrun-parts
has some arbitrary rule to only allow some characters in filename, is useful.
â ctrl-alt-delor
Jul 10 at 6:03
add a comment |Â
1
Have you try to remove.cron
?
â Romeo Ninov
Apr 22 at 16:01
@RomeoNinov Yes I did, see my answer bellow. But thanks any ways.
â ctrl-alt-delor
Apr 22 at 21:18
Not off topic. the answer is useful. Knowing thatrun-parts
has some arbitrary rule to only allow some characters in filename, is useful.
â ctrl-alt-delor
Jul 10 at 6:03
1
1
Have you try to remove
.cron
?â Romeo Ninov
Apr 22 at 16:01
Have you try to remove
.cron
?â Romeo Ninov
Apr 22 at 16:01
@RomeoNinov Yes I did, see my answer bellow. But thanks any ways.
â ctrl-alt-delor
Apr 22 at 21:18
@RomeoNinov Yes I did, see my answer bellow. But thanks any ways.
â ctrl-alt-delor
Apr 22 at 21:18
Not off topic. the answer is useful. Knowing that
run-parts
has some arbitrary rule to only allow some characters in filename, is useful.â ctrl-alt-delor
Jul 10 at 6:03
Not off topic. the answer is useful. Knowing that
run-parts
has some arbitrary rule to only allow some characters in filename, is useful.â ctrl-alt-delor
Jul 10 at 6:03
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
6
down vote
accepted
I found the problem. It seems that by removing the .cron
from the end of the filename, it will start to work. (dots are not allowed in filename, see below ).
From man run-parts
If neither the --lsbsysinit option nor the --regex option is given then the names must consist entirely of ASCII upper- and lower-case letters, ASCII digits, ASCII underscores, and ASCII minus-hyphens.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
6
down vote
accepted
I found the problem. It seems that by removing the .cron
from the end of the filename, it will start to work. (dots are not allowed in filename, see below ).
From man run-parts
If neither the --lsbsysinit option nor the --regex option is given then the names must consist entirely of ASCII upper- and lower-case letters, ASCII digits, ASCII underscores, and ASCII minus-hyphens.
add a comment |Â
up vote
6
down vote
accepted
I found the problem. It seems that by removing the .cron
from the end of the filename, it will start to work. (dots are not allowed in filename, see below ).
From man run-parts
If neither the --lsbsysinit option nor the --regex option is given then the names must consist entirely of ASCII upper- and lower-case letters, ASCII digits, ASCII underscores, and ASCII minus-hyphens.
add a comment |Â
up vote
6
down vote
accepted
up vote
6
down vote
accepted
I found the problem. It seems that by removing the .cron
from the end of the filename, it will start to work. (dots are not allowed in filename, see below ).
From man run-parts
If neither the --lsbsysinit option nor the --regex option is given then the names must consist entirely of ASCII upper- and lower-case letters, ASCII digits, ASCII underscores, and ASCII minus-hyphens.
I found the problem. It seems that by removing the .cron
from the end of the filename, it will start to work. (dots are not allowed in filename, see below ).
From man run-parts
If neither the --lsbsysinit option nor the --regex option is given then the names must consist entirely of ASCII upper- and lower-case letters, ASCII digits, ASCII underscores, and ASCII minus-hyphens.
answered Apr 18 at 10:28
ctrl-alt-delor
8,76031947
8,76031947
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f438473%2fcron-job-not-running-from-cron-daily%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
Have you try to remove
.cron
?â Romeo Ninov
Apr 22 at 16:01
@RomeoNinov Yes I did, see my answer bellow. But thanks any ways.
â ctrl-alt-delor
Apr 22 at 21:18
Not off topic. the answer is useful. Knowing that
run-parts
has some arbitrary rule to only allow some characters in filename, is useful.â ctrl-alt-delor
Jul 10 at 6:03