Changes

Jump to: navigation, search

OPS435 Python Lab 3

12 bytes added, 19:35, 2 June 2017
PART 2 - Running System Commands with Subprocess
:::*The script should use the linux command: '''df -h | grep '/$' | awk '{print $4}''''
:::*The script should contain the function called: '''free_space()'''
:::*The function '''free_space()''' should return a string which is in '''utf-8''' and has '''newline characters strip''':::*'''Note: ''' your output may be completely different, the free/available disk space on every computers root directory may be different.
:::'''Sample Run 1:''' <source>
run lab3d.py
13,420
edits

Navigation menu