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

    Add row in crontab

    Scheduled Pinned Locked Moved General pfSense Questions
    4 Posts 2 Posters 552 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.
    • B
      barbatrukko
      last edited by

      Hi,
      I must add a row in /etc/crontab file.
      But after some time system (I suppose) create a new file and remove my row…...

      Where I must put my row for be sure that when pfsense generate crontab file add also my row?

      best regards

      1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan
        last edited by

        You checked this : https://doc.pfsense.org/index.php/Executing_commands_at_boot_time ?
        Or this : the Cron package ?

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

        1 Reply Last reply Reply Quote 0
        • B
          barbatrukko
          last edited by

          @Gertjan:

          You checked this : https://doc.pfsense.org/index.php/Executing_commands_at_boot_time ?
          Or this : the Cron package ?

          Hi,
          the first link is about "boot time" and is not what I want: i want that all days at some time system execute a command.

          Now I installed as you suggested the "cron package" and added my command. Now I will check if row will be removed.

          Thanks for your help!

          Best regards!

          1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan
            last edited by

            @barbatrukko:

            @Gertjan:

            You checked this : https://doc.pfsense.org/index.php/Executing_commands_at_boot_time ?
            Or this : the Cron package ?

            Hi,
            the first link is about "boot time" and is not what I want: i want that all days at some time system execute a command.

            The /etc/crontab file is constructed at boot time.
            Use the info found here https://doc.pfsense.org/index.php/Executing_commands_at_boot_time to "add" your own lines. The will last because the file only gets created ay boot time.

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

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.