Skip to content

Commit

Permalink
updated example of subprocess_shell
Browse files Browse the repository at this point in the history
  • Loading branch information
shihai s00424258 committed Mar 7, 2024
1 parent 8b62aa7 commit 138a450
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/subprocess_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ def __len__(self):
subprocess.check_output(['/bin/ls', '-l'])
subprocess.check_output('/bin/ls -l', shell=True)

subprocess.getoutput('/bin/ls -l')
subprocess.getstatusoutput('/bin/ls -l')

subprocess.run(['/bin/ls', '-l'])
subprocess.run('/bin/ls -l', shell=True)

Expand Down

0 comments on commit 138a450

Please sign in to comment.