Skip to content

Instantly share code, notes, and snippets.

@hidenorly
Last active April 6, 2016 14:31
Show Gist options
  • Save hidenorly/af44ea83ff568eb0b0cac3276f90efc2 to your computer and use it in GitHub Desktop.
Save hidenorly/af44ea83ff568eb0b0cac3276f90efc2 to your computer and use it in GitHub Desktop.
使っていると router の パフォーマンス が どんどん悪化するので 自動で 再起動 させてみる ref: http://qiita.com/hidenorly/items/834399e05cdebae050e3
$ git clone https://github.com/hidenorly/atermUtil.git
$ chmod +x atermUtil/aterm_util.rb
$ ln -s /home/User名/atermUtil/aterm_util.rb /home/User名/bin
$ crontab -e
0 4 * * * /bin/bash /home/User名/bin/daily-job.sh
$ vim ~/bin/daily-job.sh
#!/bin/bash
/home/User名/bin/aterm_util.rb -p ルータのパスワード
$ sudo apt-get install ruby2.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment