Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Off Topic
    4. Crontabs unter (Debian) Bookworm funkionieren oft nicht

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Crontabs unter (Debian) Bookworm funkionieren oft nicht

    This topic has been deleted. Only users with topic management privileges can see it.
    • BananaJoe
      BananaJoe Most Active @Rushmed last edited by BananaJoe

      @rushmed poste hier mal die ganze Zeile aus dem Crontab

      sieht richtig aus. was passiert in der Bash wenn du das anhängst? hat curl nicht so einen Fortschrittbalken?
      Versuch mal

      curl --silent unddanndeinebefehle
      
      R 2 Replies Last reply Reply Quote 0
      • R
        Rushmed Most Active @BananaJoe last edited by

        @bananajoe Ist oben nachgereicht.

        1 Reply Last reply Reply Quote 0
        • R
          Rushmed Most Active @BananaJoe last edited by Rushmed

          @bananajoe sagte in Crontabs unter (Debian) Bookworm funkionieren oft nicht:

          @rushmed poste hier mal die ganze Zeile aus dem Crontab

          sieht richtig aus. was passiert in der Bash wenn du das anhängst? hat curl nicht so einen Fortschrittbalken?
          Versuch mal

          curl --silent unddanndeinebefehle
          

          Wird korrekt ausgeführt.

          Hier noch zur Info:

          pi@Smartazamba:~ $ systemctl status cron.service
          ● cron.service - Regular background program processing daemon
               Loaded: loaded (/lib/systemd/system/cron.service; enabled; preset: enabled)
               Active: active (running) since Mon 2023-07-17 16:39:45 CEST; 1 day 7h ago
                 Docs: man:cron(8)
             Main PID: 434 (cron)
                Tasks: 1 (limit: 8754)
                  CPU: 1.260s
               CGroup: /system.slice/cron.service
                       └─434 /usr/sbin/cron -f
          
          Jul 18 23:56:01 Smartazamba cron[434]: (pi) RELOAD (crontabs/pi)
          Jul 18 23:56:01 Smartazamba CRON[1492490]: pam_unix(cron:session): session opened for user pi(uid=1000) by (uid=0)
          Jul 18 23:56:01 Smartazamba CRON[1492491]: (pi) CMD (curl http://localhost:8087/set/0_userdata.0.Eigene_Datenpunkte.CRONTEST?value=$(date +)
          Jul 18 23:56:01 Smartazamba CRON[1492490]: (CRON) info (No MTA installed, discarding output)
          Jul 18 23:56:01 Smartazamba CRON[1492490]: pam_unix(cron:session): session closed for user pi
          Jul 18 23:59:01 Smartazamba cron[434]: (pi) RELOAD (crontabs/pi)
          Jul 18 23:59:01 Smartazamba CRON[1494906]: pam_unix(cron:session): session opened for user pi(uid=1000) by (uid=0)
          Jul 18 23:59:01 Smartazamba CRON[1494907]: (pi) CMD (curl http://localhost:8087/set/0_userdata.0.Eigene_Datenpunkte.CRONTEST?value=$(date +)
          Jul 18 23:59:01 Smartazamba CRON[1494906]: (CRON) info (No MTA installed, discarding output)
          Jul 18 23:59:01 Smartazamba CRON[1494906]: pam_unix(cron:session): session closed for user pi
          
          
          BananaJoe 1 Reply Last reply Reply Quote 0
          • BananaJoe
            BananaJoe Most Active @Rushmed last edited by

            @rushmed sagte in Crontabs unter (Debian) Bookworm funkionieren oft nicht:

            systemctl status cron.service

            ich glaub die Meldung kommt immer weil im System kein MTA konfiguriert ist. hat nichts mit den aktuellen Eintrag in der Crontab zu tun
            Ich habe einen konfiguriert und setze obiges ein um Mails zu unterdrücken (geht auf mehreren Wegen, das ist einer davon)

            R 1 Reply Last reply Reply Quote 0
            • R
              Rushmed Most Active @BananaJoe last edited by

              @bananajoe Hast du Bookworm drauf und funktionieren deine zeitgesteuerten Jobs?

              BananaJoe Thomas Braun 2 Replies Last reply Reply Quote 0
              • BananaJoe
                BananaJoe Most Active @Rushmed last edited by

                @rushmed sagte in Crontabs unter (Debian) Bookworm funkionieren oft nicht:

                @bananajoe Hast du Bookworm drauf und funktionieren deine zeitgesteuerten Jobs?

                Nein, ich bin bei Ubuntu Jammy und ja bei mir funktioniert alles.
                Im Zweifel sind es zu viele Sonderzeichen. Dann packe das was du ausführen willst in ein Skript und starte dieses über den cronjob

                1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @Rushmed last edited by Thomas Braun

                  @rushmed

                  Ich würde auch keine direkten Kommandos da reinschreiben sondern auf entsprechende Skripte verlinken. Lässt sich besser handhaben.

                  Edith: @BananaJoe war schneller mit dem Skript...

                  1 Reply Last reply Reply Quote 0
                  • R
                    Rushmed Most Active last edited by

                    Das ist nur ein Testbefehl. Eigentlich geht es mir um Scrips.
                    Kann dashier https://forums.debian.net/viewtopic.php?t=153153 etwas mit meinem Problem zu tun haben?

                    pi@Smartazamba:~ systemctl status anacronon
                    Unit anacron.service could not be found.
                    
                    Thomas Braun 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @Rushmed last edited by

                      @rushmed
                      Möglich. Installier es nach.

                      R 1 Reply Last reply Reply Quote 0
                      • R
                        Rushmed Most Active @Thomas Braun last edited by

                        @thomas-braun Hat nicht geholfen. 😥

                        Thomas Braun 1 Reply Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @Rushmed last edited by

                          @rushmed

                          Hast du ein Skript angelegt und cronst das?

                          R 1 Reply Last reply Reply Quote 0
                          • R
                            Rushmed Most Active @Thomas Braun last edited by

                            @thomas-braun Ja, zwei. Die Scripte lassen sich auch über die Bash ausführen. Die Bearbeitung dauert aber ca. 20 Minuten. Deswegen veruch' ich das Troubleshooting mit einem einfachen Befehl. Im Cron.log steht ja auch dass die Befehle ausgeführt wurden, allerdings passiert nichts.

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post

                            Support us

                            ioBroker
                            Community Adapters
                            Donate

                            883
                            Online

                            31.7k
                            Users

                            79.8k
                            Topics

                            1.3m
                            Posts

                            bookworm crontab mta
                            3
                            18
                            1411
                            Loading More Posts
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes
                            Reply
                            • Reply as topic
                            Log in to reply
                            Community
                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                            The ioBroker Community 2014-2023
                            logo