Re: Reading from a text file, or unix console screen

From: Richard Huxton <dev(at)archonet(dot)com>
To: Suro <suro(at)sms(dot)am>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Reading from a text file, or unix console screen
Date: 2007-03-29 12:10:22
Message-ID: 460BACAE.5090602@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Howard Cole 2007-03-29 12:18:33 pgAgent Crash on WinXP
Previous Message Suro 2007-03-29 11:48:28 Reading from a text file, or unix console screen