6 lines
247 B
Python
6 lines
247 B
Python
#!/usr/bin/env python3
|
|
import subprocess
|
|
result = subprocess.run(['wc', '-l', '/etc/passwd'], capture_output=True, text=True)
|
|
line_count = int(result.stdout.strip().split()[0])
|
|
print(f"PASSWD_LINES={line_count}")
|
|
exit(0 if line_count == 46 else 1) |