Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 080492E005F for ; Thu, 17 Apr 2008 19:30:16 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 21545-04 for ; Thu, 17 Apr 2008 19:30:13 -0300 (ADT) X-Greylist: delayed 00:20:20.06328 by SQLgrey-1.7.5 Received: from gwmta.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by developer.postgresql.org (Postfix) with ESMTP id 0A01D2E0044 for ; Thu, 17 Apr 2008 19:30:12 -0300 (ADT) Received: from Courts-MTA by gwmta.wicourts.gov with Novell_GroupWise; Thu, 17 Apr 2008 17:09:51 -0500 Message-Id: <48078446.EE98.0025.0@wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 7.0.3 Beta Date: Thu, 17 Apr 2008 17:09:34 -0500 From: "Kevin Grittner" To: "David Jorjoliani" , Subject: Re: Database update problem from crontab on ubuntu server References: <4807B143.5080006@mysoft.ge> In-Reply-To: <4807B143.5080006@mysoft.ge> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/181 X-Sequence-Number: 28945 >>> On Thu, Apr 17, 2008 at 3:21 PM, in message <4807B143.5080006@mysoft.g= e>, David Jorjoliani wrote:=20 =20 > 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: >=20 > "unexpected EOF on client connection" >=20 > while update running from cron. If I run this update manually from root > user - it works fine. Here is update command: >=20 > su -l postgres -c "gunzip -c /backup/rms.gz | psql rms" >=20 > Can somebody give any suggestion? =20 Not that this should matter, but do you have the same result with?: =20 su -l postgres -c "gunzip < /backup/rms.gz | psql rms" =20 I would recommend specifying the full path for the executables. You don't always have the normal $PATH for the user under cron. =20 -Kevin =20 =20