0

I'd like to have a script running in the background, which pings a remote host every 10 seconds or so. The script looks something like this:

nohup ping -i 10 www.google.com &

I'm able to initiate the script with an @reboot cron job, following this suggestion. However, the ping doesn't happen in the background and I don't see the script running when I poke around with ps.

Any suggestions much appreciated. Thanks.

ether_joe
  • 1,053
  • 1
  • 9
  • 14

1 Answers1

0

I needed to switch from using a cron job, to adding a script to /etc/network/if-up.d/ as per this suggestion. Did some troubleshooting with ifup --all -v to get the details correct.

ether_joe
  • 1,053
  • 1
  • 9
  • 14