1 2 3
#!/bin/sh mkdir -p /var/log/atop || exit 1 exec atop -a -w /var/log/atop/atop_$(date +%Y%m%d) 600