SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Related Sites

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files
Tail Server
  1. Licence This software is released according to GPL licence as reported in gpl.txt file. You must read it before preceed.
  2. Requirements Tail Server is written in Perl, so it uses this kind of interpreter. Requires Perl 5.6
  3. About In several circumstances the need to access on remote time-varying log file leads to write some simple scripts. These files generated by applications like syslog, http, news, etc. are often located on different machines. System Administrator usually logon on remote system then type: # tail -f <file>

Tail Server offers the possibliy to map on Tcp/Ip port the output of "# tail -f <file>" without (each time) logging on remote systems. Also offers output regular expressions filter in order to include or exclude strings.

4. Install
-> Download software by http://www.bluray.it -> Login as root (This step is optional, but depends on user rights on logfile to put under monitor) -> cp tserv.x.y.z in /usr/local/src
-> gunzip < tserv.x.y.z | tar xvf -
-> cd Tserv
-> vi tserv.cfg
Read notes and modify other directives if necessary. Be sure to check users rights on filename.

-> Make sure to check perl bin path with the firts file of tserv.pl (/usr/bin/perl) -> ./tserv.pl &

5. Edit tserv.fg
Define file path in [SERVER] section and filemap in [PORTMAP] section

6. Using admin script
Is possible to manager this server using admin.script on /etc/init.d/ dir or on rc dir.
One example should be (tried on Solaris): -> cp admin.script /etc/rc3.d/S99Tserv

OR
-> cp admin.script /etc/init.d/Tserv
admin.script refers to /usr/local/src/Tserv dir start server. Thus if you decide to modify working dir, is necessary edit start section. Similar changes are needed on pid file path.

7. Test Tail-Server
Let's suppose to run on default values: $ telnet localhost 811
Message "Connected to TSERV !" indicates a working server

8. Windows
Tail Server is developed thinking on *NIX systems, but in some case should be useful to have it on Windows systems. Windows version is based on tail server 0.2.1 and is localted under Windows directory

9. Contrib
I hope this simple script is useful to somebody, and it's well accepted any suggestions in order to get better it.
Mail: a.orazi@bluray.it

10. Special Thanks
Fabrizio Fiorucci <http://fabrizio.oasi.asti.it> for his infinite patience !


Other Sites

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.