Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am running a batch job daily which runs on different machines daily (Say like 4 machines). Each machine has its own log file logging all the details. Is it possible to create a shell script to split the window and run tail command to view all the log files in a single terminal?

share|improve this question

migrated from stackoverflow.com May 20 '11 at 23:28

This question came from our site for professional and enthusiast programmers.

add comment

3 Answers

There's a utility that does that already: multitail.

It splits your terminal into as many regions as files you're monitoring. Runs on must Unix-like OSes, and the docs says it can run on Windows with Cygwin.

share|improve this answer
add comment

If you are using Putty then try to use Putty Connection Manager to view multiple terminals in a single window. Programatically i am not sure you can do this.

share|improve this answer
add comment

Alternatively you could use terminator - http://www.tenshu.net/terminator/

Terminator lets your arrange terminal windows in a grid, so you can have a 2x2 grid with 4 windows running tail for each log file.

sudo aptitude install terminator
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.