#!/usr/bin/env python3 """Show pids and names.""" import psutil for pid in psutil.pids(): p = psutil.Process(pid) print(p.pid, p.name())