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

[cron] pingtest script works from the shell, but not when called via cron

Scheduled Pinned Locked Moved pfSense Packages
3 Posts 2 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.
  • A
    Abnovitas
    last edited by Oct 31, 2012, 9:52 AM

    Hello!

    I wanted to use the pingtest script BennTech created and published in this thread and I ran into some strange issues.
    When I execute the script from a shell by hand it's working fine and the logfile shows "Ping 8.8.4.4 OK." but when I'm using cron to call the script, all pings fail instantly and it executes the interface reset and restarts the router afterwards.

    I didn't modify the script except for the user variables $ALLDEST and $BOUNCE and set up cron like it says in the topic:

    */5 * * * * root /usr/local/bin/pingtest.sh
    

    Thanks for any advise!

    1 Reply Last reply Reply Quote 0
    • M
      marcelloc
      last edited by Oct 31, 2012, 11:44 PM

      Try to Edit your script and include full path to all binaries your script call

      Treinamentos de Elite: http://sys-squad.com

      Help a community developer! ;D

      1 Reply Last reply Reply Quote 0
      • A
        Abnovitas
        last edited by Nov 1, 2012, 8:27 AM

        Thank you very much! That was the problem indeed :)

        Thanks!

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