#!/bin/sh # loggy.sh date=`date +%F_%H-%M-%S` logcat -b all -v time -f /cache/logcat_${date}.txt & cat /dev/kmsg > /cache/kmsg_${date}.txt & rsync -ar /data/tombstones > /cache/tombstones/ & cat /proc/last_kmsg > /cache/last_kmsg${date}.txt