Human: Python: how to get the final output of multiple system commands? Assistant: 
Here is some code to capture final output of a chain of system commands `ps -ef | grep something | wc -l`

subprocess.check_output('ps -ef | grep something | wc -l', shell=True)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.