[CDBUG-talk] Sysadmin blog
Brian Callahan
bcallah at devio.us
Sun Nov 16 21:39:29 EST 2014
On 11/16/14 21:18, Jaime wrote:
> This is a bit of self-promotion, I admit, but I just started a blog
> for some of my systems administration stuff. Its just getting started
> right now, but I figured I'd share.
>
> http://www.reviewmynotes.com/
>
> I plan to include scripts and commands that I've built up over the
> years, general sysadmin advice, and point to other good sources of
> information. Currently, I'm in the process of posting some of the
> shell scripts I use for imaging and managing the Macs at my job. I
> also spend time thinking about public education, communication, and
> organizational techniques (personal and departmental), so that might
> show up from time to time.
>
> I hope this wasn't too far off topic.
>
> Jaime
>
So this reminds me of an oft-forgotten point in portability of shell
scripts: the popularity of the linuxism #!/bin/bash (though it appears
it has crept into Mac OS X as well, sad...).
Whether it's writing a script that doesn't actually need bash (just
/bin/sh would do) or doing the simple #!/usr/bin/env bash (something I
got one of my upstreams to do to better support OpenBSD:
https://git.informatik.uni-erlangen.de/?p=re06huxa/herbstluftwm;a=commit;h=b1fe1380419e1bc11ee017b59a9d58c238c66f91
), these little portability tricks go a long way to ease transfer
between machines.
Maybe a POSIX shell meeting is in order (targeting POSIX shell, only
using command flags that are included in the POSIX base, etc.) - would
you be up to doing such a meeting?
We could even do a shell script swap meeting: bring your favorite
scripts and share.
Or a shell script porting meeting: actually making sure your scripts
work on all the different platforms in the world.
~Brian
More information about the CDBUG-talk
mailing list