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

    Cron not working

    Scheduled Pinned Locked Moved pfSense Packages
    4 Posts 3 Posters 1.5k 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.
    • E
      evilsmo
      last edited by

      Cron package not working for me.
      I have to use crontab -e and via Web Gui and not run my scripts
      Pfsense 2.1 Cron 0.1.8

      1 Reply Last reply Reply Quote 0
      • P
        phil.davis
        last edited by

        Editing crontab from the command line will not work for long - it will be overwritten by the pfSense-defined config. The Cron package works nicely for me.
        What are you entering as the command to execute?
        On pfSense you usually need to specify the full path to all executables.

        As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
        If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

        1 Reply Last reply Reply Quote 0
        • E
          evilsmo
          last edited by

          I create simples script
          /bin/echo 1 >> /root/eu.txt

          And call this on gui cron on web interface
          1 * * * * * /bin/sh /root/eu.sh

          NOT WORK

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            @evilsmo:

            I create simples script
            /bin/echo 1 >> /root/eu.txt

            And call this on gui cron on web interface
            1 * * * * * /bin/sh /root/eu.sh

            NOT WORK

            That will run the script at minute 1 of every hour.

            If you want to run every minute, you need to use */1 as the first parameter.

            Also make sure the user is root, not *

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

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