Hacker News new | past | comments | ask | show | jobs | submit login

To me that sounds like development and testing (i.e. figuring out what the steps are). Once you have that it should be automated fully.

Too often people will put up with the, "well, we only do this once a month so it's not worth automating". Literally, I script everything now, just in simple bash... if I type a command, I stick it into a script, and then run the script. Over time you go back and modify said script to be better, eventually this turns into more substantive application. At a certain point, around the time that you have more than one loop, are trying to do things based on different error scenarios, it's probably time to turn to rewriting it in another language.

The simplest thing this does for me, is guarantee that all the parameters needed are valid and present before continuing.




I've been doing it this way for years and it really, really works. Some places have reservations with it since its lack of formality is considered "risky" by some.

Though, an alternative to switching to another language is using xargs well. Writing bash with some immutably has been pretty invaluable for my workflows lately. For example

  seq 1 10 | xargs -P10 -I{} ssh $host-{} hostname




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: