cron job not running from cron.daily

The name of the pictureThe name of the pictureThe name of the pictureClash 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






share|improve this question















  • 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














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






share|improve this question















  • 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












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






share|improve this question











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








share|improve this question










share|improve this question




share|improve this question









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 that run-parts has some arbitrary rule to only allow some characters in filename, is useful.
    – ctrl-alt-delor
    Jul 10 at 6:03












  • 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







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










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.







share|improve this answer





















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    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






























    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.







    share|improve this answer

























      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.







      share|improve this answer























        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.







        share|improve this answer













        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.








        share|improve this answer













        share|improve this answer



        share|improve this answer











        answered Apr 18 at 10:28









        ctrl-alt-delor

        8,76031947




        8,76031947






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            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













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?