hexmapper/tools/get_hostname.py
2025-09-26 08:16:54 +02:00

6 lines
154 B
Python

import subprocess
result = subprocess.run(['hostname'], capture_output=True, text=True)
hostname = result.stdout.strip()
print(f"Hostname: {hostname}")