notakaos / command_watcher

UNIX コマンドを定期的に実行し Web に出力する

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

command_watcher

UNIX コマンドを定期的に実行し Web に出力する

使い方

lib/app.rb の

command = 'unix_command'

unix_command の部分に実行したコマンドを記述します。

その後、

BASIC_AUTH_USERNAME=testuser BASIC_AUTH_PASSWORD=testpass bundle exec rackup

で実行します。

refresh_seconds = 4

refresh_seconds は指定された時間でブラウザを refresh します。

About

UNIX コマンドを定期的に実行し Web に出力する


Languages

Language:Ruby 100.0%