Re: Reading from a text file, or unix console screen - Mailing list pgsql-general

From Richard Huxton
Subject Re: Reading from a text file, or unix console screen
Date
Msg-id 460BACAE.5090602@archonet.com
Whole thread Raw
In response to Reading from a text file, or unix console screen  (Suro <suro@sms.am>)
List pgsql-general
Suro wrote:
> Hi!
>
> Can anyone tell me how can I insert an information from a text file to a
> PostgreSQL database when the text file is continously being updated with a
> new information.
>
> Alternatively if I have a freebsd program which continously echoes to the
> console screen some information, how can I insert that information to the
> database and to correct columns, using some regular expressions method.

Sounds like you'll be wanting Perl and File::Tail (try search.cpan.org)

I'm sure Python and Ruby have their own versions too.

--
   Richard Huxton
   Archonet Ltd

pgsql-general by date:

Previous
From: Suro
Date:
Subject: Reading from a text file, or unix console screen
Next
From: Howard Cole
Date:
Subject: pgAgent Crash on WinXP