Archive: bash

 

Useful tip – if you’ve ever been ssh’d into a remote machine and don’t want to break the connection or open a new session just to add a new tunnel, there is a way Press [return] then ~ then C to get to an ssh> prompt, then you can add tunnels as you would at [...]



 

Found this great article on writing bash scripts defensively. Glad to say most of the advice we are already following with our bash scripts however there are a couple of new things I intend to roll in on Monday. Recommended reading for anyone scripting in Bash. http://www.davidpashley.com/articles/writing-robust-shell-scripts.html More Reading:Server Migration – Pipe Tar from Server [...]