List It
Here’s the full script listing for the project. If you’ve been following along and running the test scripts up to this point, the elements in this listing should be familiar to you. We also lifted the send_email() function from our prior projects to notify via email when the script has completed all its tasks successfully.
To keep the script clutter-free so you can concentrate on what each line of code is doing, there won’t be any numbered bullet call-outs. We’ve already discussed most of what the script does in the test scripts we already ran, so I’ll only touch upon a few items in the summary after the listing. These are mostly the sections I’ve commented using the # symbol within the code listing itself.
If you downloaded the code ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access