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

    Unable to run jobs using the at command

    Scheduled Pinned Locked Moved General pfSense Questions
    2 Posts 2 Posters 232 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.
    • S
      sparkman123
      last edited by

      I am trying to get anything to execute using the "at" command. I am able to schedule jobs

      at now < runner.sh
      

      where the contents of runner is a simple "touch ijustran"
      When I run my at command, I get output that "Job X will be executed using /bin/sh" and I can see it queued for execution when I execute "at -l" but it just doesn't seem to do anything.

      Are there any config settings I need to change prior to using at?

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

        We don't include all of the necessary components for at to fully function out of the box.

        The binaries are there, but notably the cron job is not present. I can't remember what else might be missing, though.

        You could install the Cron package and then add an entry for this:

        */5	*	*	*	*	root	/usr/libexec/atrun
        

        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.