GIAC
GPYC · Question #23
If the variable "example" contains a handle to a subprocess object, which of the following would show all of the possible results of running the subprocess?
The correct answer is C. example.read(). You've hit your limit · resets 1pm (America/New_York)
Advanced Python for Security Automation
Question
If the variable "example" contains a handle to a subprocess object, which of the following would show all of the possible results of running the subprocess?
Options
- Aexample.stdout.read()
- Bexample.recv(*)
- Cexample.read()
- Dexample.stdout.read()+example.stderr.read()
How the community answered
(26 responses)- A8% (2)
- B8% (2)
- C81% (21)
- D4% (1)
Explanation
You've hit your limit · resets 1pm (America/New_York)
Topics
#subprocess module#stdout#stderr#process output
Community Discussion
No community discussion yet for this question.