Last active
April 6, 2016 14:31
-
-
Save hidenorly/af44ea83ff568eb0b0cac3276f90efc2 to your computer and use it in GitHub Desktop.
使っていると router の パフォーマンス が どんどん悪化するので 自動で 再起動 させてみる ref: http://qiita.com/hidenorly/items/834399e05cdebae050e3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ crontab -e | |
0 4 * * * /bin/bash /home/User名/bin/daily-job.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ vim ~/bin/daily-job.sh | |
#!/bin/bash | |
/home/User名/bin/aterm_util.rb -p ルータのパスワード |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-get install ruby2.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment