pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexandr A. Listopad <laa@laa.zp.ua>
To: pgsql-interfaces@postgresql.org <pgsql-interfaces@postgresql.org>
Subject: Fwd: Cron <root@Eagle> /etc/counts/squid-logs/copy-to-sql.sh
Date: Mon, 18 Sep 2000 15:39:23 +0300
Message-ID: <20000918153923.A5774@laa.zp.ua> (raw)

----- Forwarded message from Cron Daemon <root> -----

Date: Mon, 18 Sep 2000 00:25:36 +0300 (EEST)
From: root (Cron Daemon)
To: root
Subject: Cron <root@Eagle> /etc/counts/squid-logs/copy-to-sql.sh

pqReadData() --  read() failed: errno=60
Operation timed out
PQendcopy: resetting connection

----- End forwarded message -----


this is my  /etc/counts/squid-logs/copy-to-sql.sh file:
----------
#!/bin/sh

rm -f /p/logs/log_to_sql >/dev/null ;

/etc/counts/squid-logs/log-squid-to-sql.perl \
        /p/logs/access.log.0 /p/logs/log_to_sql &&

/usr/local/pgsql/bin/psql -h eagle -c \
        "COPY squid_logs
                 FROM STDIN
                 USING DELIMITERS '\t';" stats \
        < /p/logs/log_to_sql &&
                rm -f /p/logs/log_to_sql >/dev/null

----------

Where mistake?

-- 
 Laa



Message-ID: <20000918153923.A5774@laa.zp.ua>
Permalink:  ../20000918153923.A5774@laa.zp.ua/
Also on:    postgresql.org/message-id/20000918153923.A5774@laa.zp.ua

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: laa@laa.zp.ua
  Subject: Re: Fwd: Cron <root@Eagle> /etc/counts/squid-logs/copy-to-sql.sh
  In-Reply-To: <20000918153923.A5774@laa.zp.ua>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox