[Gllug] Accesing files over the network with perl

Russell Howe rhowe at siksai.co.uk
Mon Oct 17 11:49:51 UTC 2005


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...

-- 
Russell Howe       | Why be just another cog in the machine,
rhowe at siksai.co.uk | when you can be the spanner in the works?
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list