3

When I use the check_output within the Subprocess module I have this output error from the Python shell:

AttributeError: 'module' object has no attribute 'check_output'

The code:

target = raw_input("IP: ")
port = subprocess.check_output(["python", "portscanner.py", target ])

I use Python 2.7. Thanks for the solution!

4

1 に答える 1