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

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Reading from a text file, or unix console screen
Дата
Msg-id 460BACAE.5090602@archonet.com
обсуждение исходный текст
Ответ на Reading from a text file, or unix console screen  (Suro <suro@sms.am>)
Список 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 по дате отправления:

Предыдущее
От: Suro
Дата:
Сообщение: Reading from a text file, or unix console screen
Следующее
От: Howard Cole
Дата:
Сообщение: pgAgent Crash on WinXP