View Single Post

   
  #2 (permalink)  
Old 04-18-2008, 08:30 AM
Kevin Grittner
 
Posts: n/a
Default Re: Database update problem from crontab on ubuntuserver

>>> On Thu, Apr 17, 2008 at 3:21 PM, in message <4807B143.5080006@mysoft.ge>,
David Jorjoliani <djorj@mysoft.ge> wrote:

> I have daily cron jobs for database update, which where working fine on
> Fedore Core 6. No I move it on Ubuntu Server 7.10 and postgres gives error:
>
> "unexpected EOF on client connection"
>
> while update running from cron. If I run this update manually from root
> user - it works fine. Here is update command:
>
> su -l postgres -c "gunzip -c /backup/rms.gz | psql rms"
>
> Can somebody give any suggestion?


Not that this should matter, but do you have the same result with?:

su -l postgres -c "gunzip < /backup/rms.gz | psql rms"

I would recommend specifying the full path for the executables. You
don't always have the normal $PATH for the user under cron.

-Kevin





--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Reply With Quote