tail -f
みたいに流しながら見たいんだけど、色んなコマンドが出力をバッファしちゃうので、困ったときはそのコマンドにバッファしないオプションが無いか探すのがオヌヌメ。
man command
-> bufferとかで検索
--line-buffered
Use line buffering, it can be a performance penality.
$ iostat -x 1 | grep --line-buffered 'sda'
#!/bin/sh | |
# Just copy and paste the lines below (all at once, it won't work line by line!) | |
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY! | |
function abort { | |
echo "$1" | |
exit 1 | |
} | |
set -e |
#!/bin/sh | |
# | |
# based on http://sourcery.blogspot.com/2007/09/script-for-openssl-certificate-signing.html | |
# | |
set -e | |
C= | |
ST= | |
L= |
#!/usr/bin/env python | |
""" | |
A script to query the Amazon Web Services usage reports programmatically. | |
Ideally this wouldn't exist, and Amazon would provide an API we can use | |
instead, but hey - that's life. | |
Basically takes your AWS account username and password, logs into the | |
website as you, and grabs the data out. Always gets the 'All Usage Types' |
<!Docutype HTML> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<title>UserStreamsClient</title> | |
<script src="http://www.google.com/jsapi"></script> | |
<script> google.load("jquery", "1.4") </script> | |
<style> | |
div.tweet { | |
border-bottom: 1px solid #999; |