#!/usr/bin/env python3 import subprocess result = subprocess.run(["whoami"], capture_output=True, text=True) print(result.stdout.strip())