Perl tail logs in between servers -


i want able send apache log file line line (tail) in between 2 servers (unidirectionally, 1 2 one), want use perl.

any idea?, able things each line of apache log in real time in server.

thanks you!

not sure perl (you can wrap in bit of perl can manipulate data), netcat (or nc short) (should available on systems).

on 1 server

tail -f filename | nc -l 12345 

on other server

nc hostname 12345 

of course can use different port number. guess in perl exec these commands (ssh remote server etc.). has given ideas! nc has loads of options should able find something.

if want write netcat in perl that's different story.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -