Changes

Jump to: navigation, search

OPS435 Python Lab 3

131 bytes added, 17:40, 2 June 2017
PART 2 - Running System Commands with Subprocess
== PART 2 - Running System Commands with Subprocess ==
:The remainder of this lab will allow you to run operating system commands via your Python script. You may have recalled using the This last part of the investigation will give you access to system commands within your python scripts. While we are able to run some bash commands inside the ipython3 environment, these do not transfer over into the python code we write. It is not usually a good idea to run system commands in Python, this makes your Python code less portable and makes it require a speicifc operating system or a system that has those commands available. There is also the case of security, allowing python to execute commands on the system can be a security problem if care isn't taken. For these reason you should only use subprocess and the system commands as a last resort and stick to Python code only.
'''Perform the Following Steps:'''
13,420
edits

Navigation menu