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 3 of 8 Topic 4922 of 5419
Post > Topic >>

Re: Database update problem from crontab on ubuntu server

by steve.holdoway@[EMAIL PROTECTED] (Steve Holdoway) Apr 18, 2008 at 10:46 AM

--Signature=_Fri__18_Apr_2008_10_46_00_+1200_9G6g6pzpOxiQdlhj
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, 18 Apr 2008 00:21:23 +0400
David Jorjoliani <djorj@[EMAIL PROTECTED]
> wrote:

> Hi,
>=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
> Thanks,
> David
>=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

In crontab you have almost no $PATH set up by default. My expectation is
th=
at it can't find gunzip. Try either setting the PATH in the script, or
usin=
g the full pathname of gunzip instead...

Cheers,

Steve

--Signature=_Fri__18_Apr_2008_10_46_00_+1200_9G6g6pzpOxiQdlhj
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIB9MoDN07rEXM5z0RAsLzAJ9bXPHoYd04Ty/sb9bwVt97QVAu6gCgusBN
IZsXG/QBkUGbcr7vf1Xeqbs=
=aNbu
-----END PGP SIGNATURE-----

--Signature=_Fri__18_Apr_2008_10_46_00_+1200_9G6g6pzpOxiQdlhj--
 




 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 Tue Oct 14 10:24:22 CDT 2008.