• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

crontab -l in ssh error

Scheduled Pinned Locked Moved webGUI
3 Posts 3 Posters 190 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V
    VMlabman
    last edited by May 3, 2024, 4:16 AM

    I was adding a line to crontab -e and when trying to save the edit I get this return on exit. every time: ~
    /tmp/crontab.2bvBtGqux4: 17 lines, 1213 characters.
    crontab: installing new crontab
    "/tmp/crontab.2bvBtGqux4":16: bad hour
    crontab: errors in crontab file, can't install
    Do you want to retry the same edit?

    I also had an even and restored my crontab from a rxt file uploaded via Diagnostics>Backup & Restore Uploaded a copy filename.txt file That I was able to get from a cat of crontab done earlier in the ssh session. I have tried several times to edit the file via crontab -e with not luck due to the error. A hand in fixing this wold be really helpful.


    crontab-ss.png

    G 1 Reply Last reply May 3, 2024, 5:38 AM Reply Quote 0
    • G
      Gertjan @VMlabman
      last edited by May 3, 2024, 5:38 AM

      @VMlabman

      This could be an easy fix : use this pfSense Cron package.

      16e594c9-9a84-4f36-a598-2e9e55b3b409-image.png

      Now you can use the GUI :

      987047ea-e718-4dec-be3b-7a4025ee5a89-image.png

      Btw :
      Can't see what was wrong, as you just show the error, not the content.
      I'm not even sure crontab can be edited like that on pfSense.

      No "help me" PM's please. Use the forum, the community will thank you.
      Edit : and where are the logs ??

      S 1 Reply Last reply May 3, 2024, 6:52 AM Reply Quote 0
      • S
        SteveITS Galactic Empire @Gertjan
        last edited by May 3, 2024, 6:52 AM

        @Gertjan from (distant) memory crontab can be edited but edits are lost at reboot and/or config save/load. In other words, use the cron package.

        Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
        When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
        Upvote 👍 helpful posts!

        1 Reply Last reply Reply Quote 0
        1 out of 3
        • First post
          1/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received