I want to capture ping -h output using Python, it results in exit status 2. I am working on Linux host.
ping -h
import subprocess import re cla