Python Programming in System Administration with Perl
A short seminar I co-authored with Daniel Ouimet for IFT3830, introducing Python as a scripting language for system administration and showing how it can drive existing Perl scripts.
- Type
- Seminar
- Duration
- 3h - 1 bloc/sitting
- Co-author
- Daniel Ouimet
- Course
- IFT3830 – SysAdmin
- Materials
- 1 slide deck (PDF)
- Language
- French
What the seminar covers
It defines Python as a scripting language, then goes over its main traits (multi-paradigm, dynamic but strong typing, uses ranging from scripting to the web and machine learning) and its strengths and weaknesses.
The code part covers naming and syntax, variables and type errors, modules and file structure, reading data files, and launching Perl scripts as subprocesses from Python while accounting for their processing time. Examples run from a Linux shell, and the bibliography points to installing Python on AlmaLinux.
Who it is for
Anyone in system administration who wants a quick start with Python, especially where Perl scripts are already in use.