Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Admin > Re: Database up...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 8 Topic 4922 of 5408
Post > Topic >>

Re: Database update problem from crontab on ubuntu

by Kevin.Grittner@[EMAIL PROTECTED] ("Kevin Grittner") Apr 17, 2008 at 05:09 PM

>>> On Thu, Apr 17, 2008 at  3:21 PM, in message
<4807B143.5080006@[EMAIL PROTECTED]
>,
David Jorjoliani <djorj@[EMAIL PROTECTED]
> 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
erro=
r:
>=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



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




 8 Posts in Topic:
Database update problem from crontab on ubuntu server
djorj@[EMAIL PROTECTED]   2008-04-18 00:21:23 
Re: Database update problem from crontab on ubuntu
Kevin.Grittner@[EMAIL PRO  2008-04-17 17:09:34 
Re: Database update problem from crontab on ubuntu server
steve.holdoway@[EMAIL PRO  2008-04-18 10:46:00 
Re: Database update problem from crontab on ubuntu server
phillip.smith@[EMAIL PROT  2008-04-18 12:03:02 
Re: Database update problem from crontab on ubuntu server
djorj@[EMAIL PROTECTED]   2008-04-18 10:18:35 
Re: Database update problem from crontab on ubuntu server
phillip.smith@[EMAIL PROT  2008-04-21 10:08:34 
Re: Database update problem from crontab on ubuntu server
montaseri@[EMAIL PROTECTE  2008-04-20 20:35:16 
Re: Database update problem from crontab on ubuntu server
djorj@[EMAIL PROTECTED]   2008-04-21 10:58:01 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 12:50:26 CDT 2008.