Skip to content

Instantly share code, notes, and snippets.

@ka2n
Created April 26, 2013 13:14
Show Gist options
  • Save ka2n/5467305 to your computer and use it in GitHub Desktop.
Save ka2n/5467305 to your computer and use it in GitHub Desktop.
tmuxを起動した時にアプリケーションの最新のログ(これはFuelPHP)とapacheのログをtailしておく
new-window -d -n log -t :2
split-window -t log -h
split-window -t log -v -t server.0
split-window -t log -v -t server.1
send-keys -t server.1 'tail -f `find ./workspace/proj/app/logs/ -type f -print | tail -1`' C-m
send-keys -t server.3 'tail -f /var/log/apache2/error_log' C-m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment