def _getstatus(args):
    """Execute bash command returning exit status."""
    import subprocess
    return subprocess.call(args, executable='bash', shell=True, stderr=
        subprocess.PIPE, stdout=subprocess.PIPE)
