Wondering why I’ve been a little light on Xsan postings? I posted an article on how to write a script to automate the setup of the Metadata and house networks in an Xsan environment on Xsanity. It uses networksetup for the most part and is meant to be a hybrid between a networksetup walkthrough and a mini-shell scripting tutorial. It can also be leveraged for scripting the initial setup of your clients in an imaging workflow, although you will typically not need to use static IP addresses in a mass deployment scenario.
-
-
Writing Shell Scripts
There’s usually a few different steps in the learning process for writing shell scripts. The first is to figure out how to just do simple things, like write hello world to the screen. The second is to start using a series of commands. The third seems to be using variables. The fourth is to start using libraries to reuse your scripts. The next is to take variables to the next level, variabalizing everything. Where are you at with this?