Archive for the 'Shell Scripting' Category

Eternal Bash History - super duper useful

Wednesday, October 10th, 2007

I come accross this nice little article! Me and Simon have wondered how to do this for a while.. well, now we know how! wohoo!
Many times I’ve found myself using Ctrl-R in Bash to get a old command four times the terminal width, just to find out that too many days have passed and it’s [...]

using ssh on multiple servers at one time

Wednesday, October 10th, 2007

The possibilities for this app are endless. Yum.
Lots of us have many server to manage and we perform the same tasks on each of the machine every day, if you want to save time the package cssh will make you happy!
Simply install the clusterssh package:

host:/# apt-get install clusterssh

Now if you want to perform the same [...]

Writing a Shell Script that executes Locally OR Remotely

Saturday, July 7th, 2007

There are a lot of times when it is useful to have a single shell script run both upon the local host, and also upon remote hosts. Here we’ll show a simple trick which allows you to accomplish this easily.
To execute shell scripts remotely the most obvious approach is to copy it there, with scp, [...]

return of the men in black