#!/bin/bash
echo "=== Last progress ==="
grep -oP '\[\d+/\d+\]' ~/pytorch-build.log | tail -3
echo ""
echo "=== Process alive? ==="
pgrep -f build_pytorch | head -3
echo ""
echo "=== Last 10 lines ==="
tail -10 ~/pytorch-build.log
echo ""
echo "=== Disk usage ==="
du -sh ~/pytorch-build
