blob: f76f253c3f62c2da370db703e774c08f51e9c3c3 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/sh
pid=$(ps -ef | awk '$8=="awesome" {print $2}')
max_str_length=8192
strace -e trace=write -s${max_str_length} -p${pid} 2>&1 \
| grep --line-buffered --color=no "write([12], " \
| sed -u 's/write([12], "\(.*\)", [0-9]\+) \+= [0-9]\+$/\1/g' \
| sed -u 's/\\n/\n/g' \
| sed -u 's/\\t/\t/g'
|