Ping a device every couple of hours

Discussion in 'Tomato Firmware' started by digitalgeek, Jan 26, 2007.

  1. digitalgeek

    digitalgeek Network Guru Member

    I have a Linksys PSUS-4 (a usb printer server) that is connected to my GSv4. Unfortunately it goes to sleep periodically. I need a script that wil ping it every couple of hours to keep it awake.
     
  2. der_Kief

    der_Kief Super Moderator Staff Member Member

    Why dont you setup a cron job ?
     
  3. digitalgeek

    digitalgeek Network Guru Member

    I'm not that familiar with cron, can you give me some suggestions


    I have enter the following from SSH:

    cru a dgsprt "00 * * * * ping -c 3 192.168.1.10"

    (I realize the is every hour, but if it keeps it awake it will help)
     
  4. der_Kief

    der_Kief Super Moderator Staff Member Member

    This should be fine, but use 0 instead of 00 (range is from 0-59)

    der_Kief
     
  5. digitalgeek

    digitalgeek Network Guru Member

    of course... oops :)
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice