Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    [SOLVED] Cron is not working for me

    Scheduled Pinned Locked Moved General pfSense Questions
    1 Posts 1 Posters 1.6k 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.
    • K
      krosseyed
      last edited by

      I have tried 2 ways to apply a cron job using a custom script

      1. Using the Cron package to use the webUI to load the job
      2. Using the crontab -e command

      Neither of them work, here is my script:

      #!/usr/local/bin/bash
      sleep 15
      /sbin/ifconfig | sendEmail -f ****** -xu ****** -xp ****** -t ****** -u Notification -s smtp.gmail.com:587 -o tls=yes

      I am able to run the script without permission errors, but I cannot get cron to do it automatically.

      Edit: I had posted the wrong version of the script

      Solvedit:

      I had incorrectly stated the program in my script! I have changed it to:

      #!/usr/local/bin/bash
      sleep 15
      /sbin/ifconfig | **/usr/local/bin/**sendEmail -f ****** -xu ****** -xp ****** -t ****** -u Notification -s smtp.gmail.com:587 -o tls=yes

      1 Reply Last reply
      Reply Quote 0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • First post
        Last post
      Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
      Privacy Policy · Cookie Policy