The indispensibles
Posted on 13 Apr 2007 at 14:53
Ian Wrigley and Simon Brock take a look at some of the open-source utilities they use to make life that little bit easier.
Screen has been around for many years, and those who've used it tend to be hooked within minutes. Basically, it allows you to connect to a server once and then run multiple "virtual terminals" on that server. Launch it with the command screen and you'll be presented with your usual shell prompt. Hit
Most Linux/Unix versions and, indeed, Mac OS X come with Screen as a standard part of the distribution and, if not, see the "Where to get them" box at the end of this column for information on where you can download this essential utility.
MultiTail
The tail command is probably familiar to anyone with more than a passing acquaintance with any flavour of Unix. In its simplest form, it just displays the last ten lines of any file, but flags added to the command can allow you to do many other things, such as to "follow" a file - that's to say, tail -f
The problem is that you'll often want to tail multiple files simultaneously, such as the main web server error log, the access log and a custom log file that your own application writes into. Enter MultiTail, described by its author Folkert van Heusden as "tail on steroids". MultiTail allows you to tail multiple files on the screen at the same time by splitting the screen either horizontally, vertically or both. It can also colour the output from many common file formats, such as the syslog file, and you can supply a regular expression so any lines that match that regex will be displayed in colour, allowing you to quickly pick out important information. It also allows you to filter lines, so only matching ones are displayed and much, much more. One neat feature is that after you have a few files open in its window, you can make MultiTail generate the command that will invoke it on that set of files, so you can interactively set it up to your own preferences and then generate a single command, which will duplicate that setup in the future.
Although it's a fairly specialised tool, MultiTail makes our lives so much easier when developing websites, or even when simply performing system administration tasks on our servers. MultiTail is included in some Linux distributions by default, but otherwise you can download either the source code or packages for most major Linux distributions.
ImageMagick
Although ImageMagick isn't something we use every day, it's the first tool we reach for when we need to manipulate images in any way. It can be used as a command-line tool or be invoked from within another program. Those of you who use Photoshop - or, indeed, The GIMP, the open-source graphical image-manipulation program - may be wondering how on earth you can use an image-manipulation program from the command line. Well, it turns out that often the command line is by far the quickest way to perform basic tasks such as converting image files from one format to another, resizing them or adding some identical "watermark" text - a copyright message or whatever - to each one.
advertisement
- Getting to grips with Microsoft's IT Health Environment Scanner
- Virtualise your servers
- The changing face of travel gadgets
- Build your own distributed file system
- The bulletproof Dell that costs an arm and a leg
- Microsoft Office 2010 Technical Preview: Q&A
- Lawnmowers, the TyTN II and one odd insurance request
- There'll never be a bulletproof OS
- How far can we trust apps?
- Five nice touches in Outlook 2010
- Why Britain's watchdogs have fewer teeth than goldfish
- Tabbed documents: how to make Office 2010 great
- Outlook 2010 People Pane – does it spell death to Xobni
- Microsoft Outlook 2010 screenshots
- Co-Authoring in Word 2010 and SharePoint Foundation 2010
- Microsoft Outlook 2010 screenshots: Backstage view
- Flash 10.1: Developing for Desktop and Device
- Microsoft Office 2010 screenshots: Recover unsaved items
- Microsoft Word 2010 screenshots: Text Effects
- Microsoft Word 2010: inserting screenshots
- Q&A: Why Conficker was a victim of its own success
- App developers losing faith in Android
- Biz Stone: Murdoch's Google veto will "fail fast"
- Google adds automatic captions to YouTube
- China ramps up cyber spying
- Mozilla maintains dependence on Google
- Windows 7 flying off the shelves
- Google Chrome OS: full details unveiled
- AOL slashes 2,500 jobs
- YouTube begins streaming full-length shows
advertisement
Printed from www.pcpro.co.uk


