Here's your chance to win one year of free cloud training to fast-track your career!
My second course on Linux Academy, Python 3 Scripting for System Administrators, is now live!
We launched the course Python Scripting for System Administrators, which touches on both Python 2 and Python 3.
If you use bash for scripting you will undoubtedly have to use conditions a lot, for example for an if … then construct or a while loop.
Today’s nifty bit of code is a startup/shutdown script for linux that allows you to add an EC2 instance to Amazon’s Route53 DNS automatically when you start up the instance, and remove it when the instance is knocked down.