Automatic Spaceship Detection Script

Beginner

In this project, you will learn how to create an automated script that can detect the disk usage of the current system. This script is designed to be used by the Galactic Empire's spaceship maintenance engineer to ensure that the basic data of the spaceship is normal before takeoff.

Python

Introduction

In this project, you will learn how to create an automated script that can detect the disk usage of the current system. This script is designed to be used by the Galactic Empire's spaceship maintenance engineer to ensure that the basic data of the spaceship is normal before takeoff.

👀 Preview

$ python auto_check_script.py
['20480', '131', '20348']

🎯 Tasks

In this project, you will learn:

  • How to create a Python script named flight_check.py that can detect the total disk space, used disk space, and unused disk space of the current system.
  • How to implement the auto_check_script() function in the auto_check_script.py file to run the flight_check.py script and capture its output.
  • How to test the auto_check_script() function to ensure that it is working correctly.

🏆 Achievements

After completing this project, you will be able to:

  • Understand how to use Python and the os library to create an automated script for system detection.
  • Implement a function that can run a Python script and capture its output.
  • Test and verify the functionality of an automated script.

Teacher

labby

Labby

Labby is the LabEx teacher.