bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem with tail -f that need to add to each line constant string at th


From: dan12341234
Subject: problem with tail -f that need to add to each line constant string at the beginning of each line
Date: Sat, 29 Oct 2011 03:08:19 -0700 (PDT)

Hi All

im running 4 scripts that perform ssh and tail -f on a file exist on 4
servers and display on the screen.
(1 script per servers)

ssh server1 tail -f /var/log/apache/access_log
ssh server2 tail -f /var/log/apache/access_log
ssh server3 tail -f /var/log/apache/access_log
ssh server4 tail -f /var/log/apache/access_log

the problem is that the display dosent show any identification from which
server each line

what i need is something with an echo servername, before each line printed
to the screen

Thanks A Lot
Dan

-- 
View this message in context: 
http://old.nabble.com/problem-with-tail--f-that-need-to-add-to-each-line-constant-string-at-the-beginning-of-each-line-tp32742979p32742979.html
Sent from the Gnu - Bash mailing list archive at Nabble.com.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]