[Gllug] Accesing files over the network with perl

Gerhardus Geldenhuis gerhardus.geldenhuis at gmail.com
Mon Oct 17 13:01:59 UTC 2005


On 10/17/05, Russell Howe <rhowe at siksai.co.uk> wrote:
> On Mon, Oct 17, 2005 at 08:54:28AM +0100, Gerhardus Geldenhuis wrote:
> > Hi
> > I am looking for a way to access files over the network with perl every 15 min.
>
> Very easy, pretty secure (aside from the unencrypted-ness of it,
> although you could probably pipe through openssl or something if you
> wish...).
>
> echo 'logdump 23623/tcp # Dumps /path/to/logfile to client upon connect. See inetd.conf' >> /etc/services
> echo 'logdump stream tcp nowait nobody.nogroup /bin/cat /path/to/logfile' >> /etc/inetd.conf && /etc/init.d/inetd reload
>
> Then in the perl script, just connect to port 23623 on a client to
> receive the latest log file...
>

I have rewritten my script to adapt to the situation but this is a
cool enough suggestion just to try out and see it working.

In the end I want as a simple and failsafe a solution possible, and as
I mentioned in a reply somewhere in this thread, the volume of data is
a problem. I dont want to send 150 megs of logfiles over the network
every 15 minutes.

--
Groete
Gerhardus Geldenhuis
Registered Linux User #193352
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list