How to create a CRON job to reboot router once a week?

Discussion in 'Cisco/Linksys Wireless Routers' started by ngiovas, Feb 26, 2006.

  1. ngiovas

    ngiovas Network Guru Member

    I appologize if this is very basic, but I have never created a CRON job. I want to create a job that will reboot my router weekly at a specified time and day (for example, every Sunday at 3:00am).

    Can anyone help me with this?

    Thanks,
    Nick
     
  2. ngiovas

    ngiovas Network Guru Member

    Ok, I just did some digging and discovered that dd-wrt allows you to schedule a reboot on a given day at a given time (under the keep alive tab).

    I would still be interested in finding some info on writing CRON jobs.

    Thanks,
    Nick
     
  3. Cytomax

    Cytomax Network Guru Member

    This might help even though its for a different firmware.. maybe itll give you some hints..
    Eddie
     
  4. vincentfox

    vincentfox Network Guru Member

    I don't see why this is difficult. The cron entry is just some numbers to specify when it runs, and a command to run at that/those times. Google is your friend.

    If your firmware doesn't provide a GUI for it like DD-WRT does, you can use nvram rc_startup variable to put in an entry. Assuming firmware has a crond running.
     
  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